mojira.dev
MCPE-223948

Copper golem can get stuck on the edge of a block above a chest

Steps to reproduce

  1. Load [mediaInline]

  2. Spawn a copper golem on either of the orange wools.

  3. Observe that it takes an item from the chest chest.

  4. Punch the copper golem off the build into the void.

  5. Spawn a new copper golem on the build and immediately press the wooden button. This teleports it to a position where it is supported by a wool block but its center is over the copper chest.

  6. Observe the copper golem for a while.

Expected result

The copper golem takes an item from the chest in step (6) as it did in step (3).

Observed result

The copper golem is stuck. It never moves and never takes an item from the chest.

Linked issues

Attachments

Comments 1

When mobs navigate toward a destination block, they have a “close enough” threshold of about 0.6 radius from the horizontal (x, z) center of the block. For example, if they are moving from (0, 0) to (1, 0)--i.e. positioned at (0.5, 0.5) and targeting (1.5, 0,5)--they will stop at about (0.9, 0.5). As a result, if you spawn any mob in the game on a small 2-block wide floating platform, it will move once to where it straddles the two blocks, and then it will never move again.

The repro steps for this report have you teleport the copper golem to about the same relative position where it would stop pathfinding toward the orange wool on the left. If you don’t teleport the golem, it will eventually end up in that position by wandering from one orange wool to the other. Over time the golem will wander back and forth between the two orange wools, always straddling a wool with its center (position) above the edge of the chest.

I think that the golem becomes unable to open the chest because the path that it finds fails a secondary collision check at the first step. It is positioned in the space above the chest, so the path that it finds is to go straight down by one block (to stand on the chest). However, that path is obstructed by the wool blocks intersecting the golem’s collision This is similar to the edge case I described here where a mob gets stuck on a fence gate when the path that it finds is obstructed at the first step it wants to take.

GoldenHelmet

(Unassigned)

1442367

Community Consensus

Multiple

1.21.100.24 Preview, 1.21.100.23 Preview

Retrieved