I was trying to alter a skeletons attributes from a scoreboard so I wouldn't have to set the attribute to a specific base value repeatedly for each mob I want it to affect. I would use the following command to change a mob's max health attribute by storing the objective value into the base. However, when I used this command the skeleton just became passive and followed me around. I do this for the four zombie varieties as well but they dont have the same effect.
They act as normal and simply attack.
"execute as @e[tag=rpg] store result entity @s Attributes.[{Name:"minecraft:generic.max_health"}].Base float 1 run scoreboard players get @s maxmobhp"
Thank you for your report!
We're tracking this issue in MC-183450, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit