mojira.dev
MC-96946

Enderman keep follow player in creative mode

The bug

If you aggro an enderman in survival mode, then switch to creative mode, it continues to teleport behind you.

How to reproduce

  1. Look at an enderman in survival mode

  2. Switch to creative mode

  3. The enderman stops attacking you

  4. 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

Comments 33

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.

Confirmed for 1.9

Confirmed for 16w15a and 16w15b also happens if you switch to spectator mode.

Confirm for 1.9.3 pre-2

23 more comments

Confirmed in 18w47b

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

@unknown, please make a new bug report.

siiftun1857

[Mod] Asteraoth

migrated

Confirmed

(Unassigned)

aggressive, enderman, gamemode, teleport

Minecraft 16w06a, Minecraft 1.9, Minecraft 1.9.2, Minecraft 16w15a, Minecraft 16w15b, ..., Minecraft 18w47b, Minecraft 18w50a, Minecraft 19w04b, Minecraft 19w07a, Minecraft 19w11a

Minecraft 19w12a

Retrieved