mojira.dev
MC-300828

Copper golems skip their target chest on unload or restart

If a copper golem is pathfinding to a chest, waiting for other golems to finish using the chest, or is looking inside the chest when the golem is unloaded for any reason (such as chunk unload or server restart), the copper golem will skip that chest and move on to other chests, causing inconsistent behavior.

To reproduce:

  1. Create the setup as shown in the attached screenshot. Each chest contains wool of the same color as the wool block next to it. Make sure the setup is more than 32 blocks away from any other chests or copper chests.

  2. Place red wool in the copper chest.

  3. Spawn a copper golem near the copper chest.

  4. Wait for the copper golem to pick up the red wool and start walking towards the chests.

  5. Unload and reload the copper golem before it finishes placing the red wool in the chest. The easiest way to do this is by closing and re-opening a singleplayer world.

  6. Observe that the copper golem does not place the red wool in the corresponding chest as expected, and instead checks the other 9 chests before giving up.

Getting the copper golem’s visited chests before step 5 with:

/data get entity @n[type=minecraft:copper_golem] Brain.memories."minecraft:visited_block_positions".value

shows that the copper golem has one “visited” block location before the golem actually walks over to that location. The visited locations are saved when the golem is unloaded, so when the golem re-loads, it sees that it has already “checked” that chest and skips it.

Linked issues

Attachments

Comments 1

Hi!
Thank you for your report! 

We're already tracking this issue at MC-300114, so I will resolve and link this ticket as a Duplicate

I suggest also to browse through the main issue for potential fixes. 

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

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki 

Tis_awesomeness

(Unassigned)

Unconfirmed

(Unassigned)

25w32a

Retrieved