mojira.dev
MC-171065

Iron Golem Leads

When ever I lead-up a minecraft Iron golem (put an Iron golem on a lead) after I remove the lead I find that its path finding is abysmal, specifically when attacking mobs. To test this simply make an Iron Golem, use a lead on them and take them a significant distance away from the starting location by dragging them with the lead, take the lead off, and spawn a skeleton a few blocks out of their hit range. Skeletons demonstrate the issue the best because they don't rush the iron golem and instead pepper it with arrows. In all of my experiments the Iron golems sees like it wants to attack the skeleton but can't find out how to get there. There are other people with similar problems like:

https://bugs.mojang.com/browse/MC-151439

and

https://bugs.mojang.com/browse/MC-153329

 

which may indicate where in the code the issue lies. However this issue is different than the links and does warrant its own ticket. But again I think the issues are linked some how.

Linked issues

Comments 2

I am still playing around with this and it seems that if you go several chunks away, like so far that you cannot see the iron golem and then come back the iron golem once again remembers how to path find. I think it is a problem with mobs and how their AIs adapt to being put on a lead. In fact while writing this text I found out that wolves do the same thing. If the are tamed or untamed just put them on a lead, take it off, and spawn a skeleton which the wolves should go after regardless but it won't; instead the wolf seems like it has trouble path finding and won't really leave the black it is standing on. Again I think it is a problem with mob AIs and how they react to being leaded. My theory is when a mob is put on a lead their AI is supposed to changes so that they won't run off in all sorts of directions trying to chase something down and possibly breaking the lead. But that part of the AI that turns on when a mob is leaded never turns off after the mob is unleaded. However, it would have to be something only with defensive mobs attack hostile mobs because I can't in anyway replicate the problem with passive mobs. 

Please fix this because secondary defense mobs are a huge part of my play style. 

Thank you for your report!
We're actually already tracking this issue in MC-153329, so I resolved and linked this ticket as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

Alexandrew the Great

(Unassigned)

Unconfirmed

(Unassigned)

1.15.2

Retrieved