mojira.dev
MC-2491

Iron Golem AI Pathfinding Bug

NOTICE FOR MODS
I will be unable to play Minecraft for several months so if you could transfer the report to some other user, it'd be great.

What I expected to happen was...:
Golems would walk around narrow passages/go around each other.

What actually happened was...:
Golems would walk continuously in one direction regardless of the fact that they cannot pass because it is too narrow/there is another golem.

Steps to Reproduce:
1. Make a dense settlement
2. Wait for one or more golems to spawn or make some
3. Observe them walking into

On the 1st screenshot the left golem wants to go right but the one to the right wants to go left and they just bump each other indefinitely. The 3rd golem is just walking against the wall.

On the 2nd screenshot the right golem wants to go next to the house, but the one under the tree is admiring it and doesn't bulge.

On the 3rd the two golems are trying to walk in opposite directions through each other.

On the 4th the three golems cannot cross the fence and just keep bumping into it (they spawned there, the town is big enough to support 20+ golems)

On the 5th it's an example of a golem trying to walk through a house and a villager trying to go next to the golem.

On the 6th there are 3 golems trying to walk through the fence without realizing that there is an opening on the other side. About 30-40 sec later, they turned around and successfully walked out.

Linked issues

Attachments

Comments 5

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

I will need to test it out again and will post update maybe tomorrow; I have exams to study for at the moment.

Similar problems apply to actually any and all AI controlled entities. They simply are not aware of each other's intentions. For example, villagers can often swarm a single door simultaneously, each and every one of them as eagerly trying to get in or out, and thus nobody gets anywhere.

The case of golems walking against fences can be a real bug with pathing; they should realize they can not get through it and thus should find a suitable path in the first place. However, if they only move to the fence and then stop (and stand), that is normal; all mobs can randomly pick a target place to go that is in a location they can not get (or find a path to), in which case they try to move as close to the target as possible.

This site is for bug reports only. Feature and improvement suggestions are not currently being tracked here.

Still present in 1.7.4.

Vasil Bochev

(Unassigned)

Unconfirmed

Minecraft 1.4.2, Minecraft 1.7.4

Retrieved