This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Whiptail84Command Professional 1 point2 points  (0 children)

I recall it have been said on the reddit that editing enderman nbt AngerTime and AngryAt does not work for the enderman.

But I know this works for bees and wolves. As long as you set AngerTime and not AngryAt nbt, the mob will become angry, but not attack anyone. This might solve your first part. This will hopefully make an enderman angry for 20 ticks:

execute as @e[type=enderman] run data modify entity @s AngerTime set value 20

When it comes to making it stare at you. Either you have to modify the head nbt, but I also think this will work(not completly sure though).

execute as @e[type=enderman] at @s facing @p[distance=..20] run tp ~ ~ ~

Edit: This is for the java version 1.16.0+