[MC-590] Mobs not realizing they killed their attacker and trying to attack empty space Created: 25/Oct/12  Updated: 17/Feb/20  Resolved: 25/Apr/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.4, Minecraft 1.4.5, Snapshot 12w50b, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w02a, Snapshot 13w02b, Snapshot 13w03a, Snapshot 13w04a, Snapshot 13w05a, Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1
Fix Version/s: Snapshot 13w18a

Type: Bug
Reporter: Ingolf Dalbo Assignee: EvilSeph (Warren Loo)
Resolution: Fixed Votes: 30
Labels: mob
Environment:

SMP Server, mobgriefing disabled.


Attachments: JPEG File screenshot-1.jpg     JPEG File screenshot-2.jpg     JPEG File screenshot-3.jpg     JPEG File screenshot-4.jpg     PNG File screenshot-5A.png     PNG File screenshot-5B.png     PNG File screenshot-5C.png     JPEG File screenshot-6.jpg    
Issue Links:
Duplicate
is duplicated by MC-5738 Golem attacking nothing Resolved
is duplicated by MC-6334 Iron Golem Strange Behaviour Resolved
is duplicated by MC-6661 Random skeleton shooting Resolved
is duplicated by MC-6869 Skeleton continues to shoot mob after... Resolved
is duplicated by MC-6915 Skeleton keeps shooting arrows Resolved
is duplicated by MC-7276 Skeleton continues shooting at a posi... Resolved
is duplicated by MC-7375 Iron golem is attacking to air Resolved
is duplicated by MC-7827 skeletons keep shooting Resolved
is duplicated by MC-7926 Iron golem after it kills a mob it wi... Resolved
is duplicated by MC-7936 skeletons keep atacking snow golems a... Resolved
is duplicated by MC-8620 Skeletons keep shooting arrows at not... Resolved
is duplicated by MC-9024 Another Iron Golem AI bug Resolved
is duplicated by MC-9139 Skeleton kept shooting the spot where... Resolved
is duplicated by MC-9251 iron golems attacking air where it ki... Resolved
is duplicated by MC-9590 Iron Golem Attack A.I Stuck In Loop Resolved
is duplicated by MC-10086 Mob's shooting bug Resolved
is duplicated by MC-11364 the skeletons shoot arrows endless af... Resolved
is duplicated by MC-11751 Golem Glitch Resolved
is duplicated by MC-11775 After a skeleton kills a iron golem, ... Resolved
is duplicated by MC-11909 Iron Golem still swings arms after en... Resolved
is duplicated by MC-12063 Skeleton keeps shooting dead snow golem Resolved
is duplicated by MC-15287 Dogs attack nothingness Resolved
is duplicated by MC-16739 iron Golem Swinging at nothing. Resolved
is duplicated by MC-17583 tamed wolf's ai getting stuck after k... Resolved
is duplicated by MC-17900 Skeleton keep shooting dead mob Resolved
is duplicated by MC-19191 Iron golem bug in Nether Resolved
is duplicated by MC-2805 Attacking Iron Golem bug Resolved
is duplicated by MC-3327 Iron Gollem bug Resolved
is duplicated by MC-3569 Iron Golems move their arms up and do... Resolved
is duplicated by MC-4689 Iron Golem hitting no one Resolved
is duplicated by MC-5159 Skeletons shooting at nothing Resolved
is duplicated by MC-5204 Mobs keep shooting after golems die Resolved
Relates
relates to MC-137506 Pillager constantly firing into the g... Resolved
relates to MC-158668 Vex continue to attack their target a... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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.



 Comments   
Comment by Ali Quintanilha [ 23/Dec/18 ]

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.

Comment by Pedro M. Zamboni [ 02/May/13 ]

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

Comment by FireHunterX [ 17/Apr/13 ]

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.

Comment by Lewis Neilson [ 06/Apr/13 ]

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.

Comment by Stephen [ 27/Mar/13 ]

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

Comment by Numbermaniac [ 23/Mar/13 ]

still happens in 1.5.1. When it kills a snow golem, it randomly flings its arm in the air at random intervals.

Comment by Dallin DeFord [ 21/Mar/13 ]

With this new update, 1.5.1, golums and skeletons will both continue attacking the area their enemy was after they have killed it. This didn't happen to me before in any other updates, but I see it's not uncommon.

Comment by C.J. Wijtmans [ 19/Mar/13 ]

looks like garbage collectors are a pain in the ass

Comment by user-9dcfe (Inactive) [ 19/Mar/13 ]

Here is an example of this bug: http://www.youtube.com/watch?feature=player_detailpage&v=3rsYIMzcBPE#t=1472s

Comment by Idea Guy [ 11/Jan/13 ]

I also saw this on 1.4.7, on an SMP server! (I didn't think to take a picture of it, though. Sorry....) I've also seen this bug occur on Survival mode (namely, on that same server) AND without mob griefing disabled.

Comment by Idon't Wantyoutoknow [ 04/Jan/13 ]

Are you guys ever going to fix their behavior? Just wondering, because they were not fixed in 13w01b, and that snapshot was for bug fixes.

Comment by Benjamin Chiu [ 03/Jan/13 ]

If you build a snow golem and make it throw a snowball at a iron golem, after the iron golem has killed the snow golem it will stand where the golem died, flailing its arms.

Comment by Zuriki [ 22/Dec/12 ]

Does this issue also cover Iron Golems attacking players but having no effect (ie. the player is alive and stood next to the golem, it does the attack animation, but nothing happens).

Comment by Tails [ 21/Dec/12 ]

Thanks to MC-5159 found out this behavior applies to all mobs with the "new" AI. Updated summary and description to reflect that.

Comment by Idon't Wantyoutoknow [ 17/Dec/12 ]

Yeah, I made a Enderman fight a Iron golem in the 1.4.6 Pre-release and when he killed the Enderman the iron Golem was attacking no one.

Comment by Maarten Thijs [ 17/Dec/12 ]

still present in 1.4.6 pre release. the iron golem kept attacking a place where he had previously killed an endermen

Comment by Idea Guy [ 13/Dec/12 ]

Recently, I accidentally hit an Iron Golem in the head, while it was standing idly right next to a Creeper; but at the exact moment I did that, the Iron Golem attacked the Creeper. (Unfortunately, I couldn't get a screenshot in time....)

Comment by Idea Guy [ 06/Dec/12 ]

Dinnerbone and Jeb said at an earlier point in time that they fixed this bug--the real thing is, though, that (I think) they merely reduced the frequency of it happening by 80-90%. (This was probably unintentional....)

Comment by Nathan Welch [ 03/Nov/12 ]

happened to me too, my iron golem stared at a creeper for 5 mins then it attacked it causing the creeper to blow up, then the iron golem attacked the spot where the creeper used to be.

Comment by Meta [ 02/Nov/12 ]

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

Comment by Matti Ruohonen [ 25/Oct/12 ]

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.

Comment by Chalmes (Jon) [ 25/Oct/12 ]

Definitely inconsistent behaviour.

Comment by Chalmes (Jon) [ 25/Oct/12 ]

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.

Comment by Chalmes (Jon) [ 25/Oct/12 ]

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.

Generated at Sun Jan 12 11:51:33 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.