Making mobs angry at everyone
So my goal is to summon iron golems with a certain tag, and these golems will be angry at everymob.
What have right know is :
I summon the iron golems
Continue to help postexecute at @p[tag=pending_action] run summon iron_golem ^2 ^ ^ {Tags:["summoned"]}
then, in tick :
execute as @e[tag=summoned] at @s run data modify entity @s AngryAt set from entity @n[type=!player, tag=!summoned, distance=..30] UUID
But for some reasons I don't really understand, after killing a mob, they kinda stay stuck and don't do anything