Skeletons become passive when trying to modify attribute
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"
2021-01-19, 08:33 AM
2021-03-12, 04:04 PM
2021-01-19, 08:48 AM
0
1
-