The bug
If you aggro an enderman in survival mode, then switch to creative mode, it continues to teleport behind you.
How to reproduce
Look at an enderman in survival mode
Switch to creative mode
The enderman stops attacking you
Walk away from the enderman
→ Notice the enderman continues to teleport behind or near you (without attacking you) even if you try to run away from it
Notes: It continues it even if you switch to spectator mode or back to survival.
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
It looks like the problem is that the task net.minecraft.entity.monster.EntityEnderman.AIFindPlayer
is not reset when the player switched to creative or spectator mode.
Linked issues
is duplicated by 3
Comments 33
This bug still happens in survival mode, if an aggressive Enderman turns passive. Should I make a new bug report about that? It's related to MC-94730
Can confirm. He does not seem to be angry anymore but he keeps teleporting after you until you reopen the world.
Also if you swap back to survival mode and punch or look at him, he does not get angry anymore.