mojira.dev
MCPE-223911

Copper golem tries to pathfind closer than it needs to be to interact with a chest

Steps to reproduce

  1. Open the attached world.[mediaInline]

  2. Spawn a copper golem on the middle of the platform.

  3. Notice where the copper golem stands when it takes items from the copper chest.

  4. After the copper golem takes items from the copper chest, break the yellow concrete block.

Expected result

When the copper golem tries to take more items from the copper chest, it goes to the same place as in step (3), because that is the closest to position to where it was coming from, from which it can reach the chest. In other words, it should take the shortest path to a position where it can reach the chest.

Observed result

When the copper golem tries to take more items from the chest, it climbs the glass staircase and jumps down onto the copper chest, bypassing the shorter path that was used in step (3).

[media]

Linked issues

Attachments

Comments 1

Copper golems target the supporting block below the workstation for pathfinding, but then interact with the chest based on being within 1 block of it. This is the same mechanic as farmer villagers targeting the block below farmland and then interacting with the crop when they are within 1 block. It leads to more unintuitive results with copper golems, however, because we don’t expect them to prefer standing on the chest over standing next to it. In this way the issue is similar to MCPE-144057.

In the following video, the particle tracks the golem's location, or bottom center of its collision. This seems to show that opening the chest is based on being positioned within 1 block of the chest.

[media]

GoldenHelmet

(Unassigned)

1451536

Plausible

Multiple

1.21.100.23 Preview

Retrieved