mojira.dev
MC-229312

Iron golem pathfinding breaks inside villages after killing the player it was angry at

The bug

Iron golems rarely start spinning and wandering around aimlessly, even when aggravated, if the player hits them and is killed by them repeatedly. This seems to occur specifically within a village.

To reproduce

1. Create a new creative world.

2. Go to a village and spawn iron golems using /summon iron_golem.
3. Switch to survival mode and set the spawn nearby.
4. Hit the iron golems and respawn repeatedly.
5. ❌ The golems will eventually start spinning around and wandering aimlessly, even when aggravated.

Note: dying/respawning is required to reproduce this issue. I tried to reproduce this by giving myself Resistance V and I consistently failed to do so. This is also incredibly rare, so it will probably take a long time to reproduce.

Linked issues

Attachments

Comments 7

This might be hard to reproduce, but it happened.

I only managed to reproduce this twice out of, I don't know, about 50 tries.

It could be related, but I didn't use any leads.

Seems to be related to MC-163410.

Can confirm in 24w05b

It seems to randomly fix itself and but then happens again after killing the player, and sometimes it randomly stops attacking the player

ampolive

(Unassigned)

Community Consensus

Platform

Normal

Mob behaviour

iron-golem, mob-behavior, pathfinding

1.17, 1.17.1 Pre-release 1, 1.17.1 Release Candidate 1, 1.17.1, 21w43a, 1.18 Pre-release 2, 1.19 Pre-release 1, 24w05b, 1.21.10

Retrieved