mojira.dev
MC-590

Mobs not realizing they killed their attacker and trying to attack empty space

Iron golems will occasionally attack creepers, causing them to explode. The golem will then continue to try and attack the space where the creeper was. Unloading the chunk will fix their behavior. The golem is probably not 'receiving credit' for the kill when the creeper explodes, so they continue to attack.

This behavior applies to all mobs with the "new" AI that are capable of attacking (skeletons, zombies, wolves, witches). Basically in an infight if one mob dies the "killer" will still try to attack the empty spot where the mob died.

Linked issues

MC-2805 Attacking Iron Golem bug Resolved MC-3327 Iron Gollem bug Resolved MC-3569 Iron Golems move their arms up and down with no mob Resolved MC-5159 Skeletons shooting at nothing Resolved MC-5204 Mobs keep shooting after golems die Resolved

Attachments

Comments 24

Strange. 1.4.2 change log indicates:
Iron Golems
Now attack creepers, Slimes and Magma Cubes

Attached couple of screenshots where I couldnt get them attacking creepers at all, yet they go to town on spiders and slimes.

Ok, update. Spawned a magma cube next to iron golem, which it hit as expected, it then turned around and walloped one of the creepers it had previously ignored.

Definitely inconsistent behaviour.

Matti Ruohonen

I have also seen the iron golems kill a zombie and then get stuck swinging the air over the place where the zombie died until I relogged (=reloaded the chunk). So it seems to be a bug where the iron golem somehow does not 'get notified' that the mob actually died already.

Same here. Iron Golem swings arms but there is nothing to hit

14 more comments

I'd never seen this glitch before 1.5, now my iron golems are doing it basically every time they attack something =/

Just to confirm this is happening across two different clients/worlds for us. It started with 1.5, shock horror, golems stuck in the attack cycle will not do anything else even when attacked. Thus dying at the hands of skeletons.

I've noticed that if a skeleton kills you, if you don't click "Respawn" he will continue to shoot at the spot you died.

Pedro M. Zamboni

yup. that happens with another mobs to, firehunterx...

Ali Quintanilha

Still happens in 18w50a. I spawned an iron golem in The End. The iron golem attacked an endermen, then endermen teleported to the top of a pillar and the iron golem stayed at a certain distance from the pillar attacking the air forever.

Ingolf Dalbo

migrated

Confirmed

mob

Minecraft 1.4.2, Minecraft 1.4.4, Minecraft 1.4.5, Snapshot 12w50b, Minecraft 1.4.6, ..., Snapshot 13w07a, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1

Snapshot 13w18a

Retrieved