mojira.dev
MC-188506

AngryAt cannot be manually applied to endermen

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

  1. Try running this

    /data modify entity @e[type=enderman,limit=1,sort=nearest] AngryAt set from entity @e[sort=nearest,limit=1] UUID
  2. Run /data get
    → ❌ The AngryAt tag is not present and AngerTime is set to 0

Linked issues

Comments 11

Confirmed in 1.16 Release Candidate 1.

Can confirm in 20w46a.

Confirmed for 20w51a

Possible dupe of MC-188091

Can confirm in 21w03a.

1 more comments

Confirmed for 20w17a

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.

Confirmed for 1.19.2

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.

A little inconsistent with other neutral mobs, but understandable if it's a big change in enderman code.

ChromaKey

v-manilsson

Confirmed

Normal

Commands, Mob behaviour

1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 6, 1.16 Release Candidate 1, 1.16, ..., 20w51a, 21w03a, 21w06a, 1.18.1, 1.19.2

22w43a

Retrieved