If multiple Copper Golems are trying to path find either to a Chest or Copper Chest in the same X or Z coordinates but in opposite directions, they will end up pushing eachother until one of them reaches its goal.
Step to reproduce:
1. Make a flat surface
2. Place down a Copper Chest
3. Move a few blocks either on the X or Z
4. Place down a Chest that aligns with the Copper Chest
5. Summon 2 or more Copper Golems
Expected Behavior:
The two (or more) Copper Golems should check if another Copper Golem is obstructing the way to prevent both of them of pushing eachother.
Observed Behavior:
The two (or more) Copper Golems don’t check in another Copper Golem is obstructing the way causing them of pushing eachother until one reaches its goal.
Linked issues
is duplicated by 8
Attachments
Comments 8
Yes, I realized that right after reporting this bug.
Mob AIs should really receive a major rework in general but if that is not going to happen, at least Copper Golems should be fixed.
I wholeheartedly agree. Other mobs only occasionally try to pathfind in opposite directions, and if they do, we rarely care much. With Copper Golems, on the other hand, it is a common scenario, given that we may want to employ more than one to carry stuff from A to B, where they inevitably will have to pass each other in opposite directions.
What makes the situation even more frustrating is that it happens even if there is ample space for the golems to pass each other, just because they stubbornly insist on exactly following their chosen path, and not caring a jot whether something’s in their way.
Here’s a suggestion for a solution, which I think should be almost trivial to implement:
Just have Copper Golems always try to walk at an offset of 0.25 blocks to the right (from their perspective) of the block center while en route. Since they are only 0.49 blocks wide, this way Copper Golems walking in opposite directions would automatically pass each other without even so much as a fender bender.
(As an easter egg and a nod to players living e.g. in the UK or Down Under, there might even be an undocumented game rule to have Copper Golems walk to the left of the path instead.)
If that isn’t an option for some reason, I guess even just ever so slightly randomizing their path would help them to eventually pass each other, rather than just playing an endless game of push and shove.
I believe the problem occurs with all entities, and isn’t just exclusive to Copper Golems.