The bug
An enderman cannot have their AngryAt
modified with commands; this will result in the tag being removed and their AngerTime
set to 0.
I'm aware modifying NBT of living entities is not supported, but when MC-188497 is fixed, this becomes an issue with setting it on-summon. I've opened a separate ticket for it because it is a separate issue.
How to reproduce
Try running this
/data modify entity @e[type=enderman,limit=1,sort=nearest] AngryAt set from entity @e[sort=nearest,limit=1] UUID
Run
/data get
→ ❌ TheAngryAt
tag is not present andAngerTime
is set to 0
Linked issues
relates to 2
Comments 11
Possible dupe of MC-188091
Confirmed for 22w12a. However, when using a function to update both AngryAt and AngerTime simultaneously, the values do update properly when tested with /data get, but the enderman does not actually become hostile towards the target.
We fixed this. Endermen will only accept players as a target when modifying AngryAt using commands. Adding support for all entities is a feature request. We may look at this on another work track, but will not track it as a bug.
Confirmed in 1.16 Release Candidate 1.