Mojira Archive
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

Works As Intended

iNkoR_the_2nd

2023-09-01, 04:53 PM

2024-10-16, 10:54 AM

2023-09-15, 07:42 AM

2

2

Confirmed

Commands, Mob behaviour

1.20.1, 23w35a

-