mojira.dev
MC-265171

Modifying Enderman AngryAt data with commands doesn't work if the entity isn't a player

The bug

When you use /data modify entity on Endermen and use it to set their AngryAt data to the player's UUID it works, but when you run the exact same command but with a mob it doesn't aggro the Enderman onto that mob.

How to reproduce

  1. Spawn a pig

  2. Spawn an Enderman that is "AngryAt" the pig:

    /execute summon enderman run data modify entity @s AngryAt set from entity @e[type=pig,limit=1,sort=nearest] UUID

    → ❌ The Enderman doesn't attack the pig

Comments 0

No comments.

iNkoR_the_2nd

(Unassigned)

Confirmed

Commands, Mob behaviour

1.20.1, 23w35a

Retrieved