mojira.dev
MC-153697

Iron golems will occasionally attack players in creative/spectator mode

The bug

Iron golems will occasionally attack the player after they have switched to creative/spectator mode by using F3+N, they will also follow the player and still occasionally attack them.

How to reproduce

  1. /summon iron_golem ~ ~ ~ {PlayerCreated:0}
  2. Attack a villager near the golem

  3. If the golem sees you, do F3+N

  4. The iron golem will follow the player in creative/spectator and will swing their arms.

Note: It is required to attack villagers until the golem is hostile, because attacking the golem rather than the villagers will not trigger the bug.

Linked issues

Attachments

Comments 4

MC-146524 should linked to here as a related issue.

Updated

[media]

to see the process. The villager nearby has a gossip "minor_negative" of 125 towards the player. As we switch to survival, the golem is attacking us. As we switch back to creative, the golem does not attack the same way, but we can see he is walking around its target, even when on spectator, and sometimes hit "the air".

Additional information: If you are too far away from the golem (after the villager has a gossip "minor_negative"), the golem will not move but will slightly move and repeats this behavior. Also, going near 11 blocks of where the golem is, it will start walking around again.

Confirmed in 19w42a.

DrownedZombie

migrated

Confirmed

Low

Mob behaviour

mojang_internal_1

Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 5, ..., 1.14.4, 19w34a, 19w38b, 19w39a, 19w40a

19w45a

Retrieved