mojira.dev
MCPE-183649

Villagers standing against a fence at the foot of a bed and blocked by a ceiling will phase through the fence when they wake up

Steps to reproduce

  1. Make a 3x2 room with solid block walls except for fences across one of the 3-wide sides. Give the room a roof at the 4th block up so that you cannot walk from the bed onto the fence. (See screenshot and video.)

  2. Place a bed on one side the room so that its head is opposite the fence.

  3. Spawn a villager in the room and then push it against the fence at the foot of the bed.

  4. Set time to night.

  5. Set time to day.

Expected result

The villager wakes up on the bed or next to the bed, inside the room.

Observed result

The villager wakes up inside the fence and walks through it out of the room. (If this does not happen then rebuild the room with the fence side on the north as in the video, and try again.)


I made a market in Minecraft as one does and placed the villagers in their respective rooms with their respective work objects and beds but after sleeping, they often escape the (still closed) room somehow and change work objects, like they don't want that lectern anymore. It's become quite annoying, please help. 

Related issues

Attachments

Comments

migrated
[media][media]
migrated
[media][media]
GoldenHelmet

The villagers are switching workstations because they get stuck outside of their rooms and cannot reach their former workstations. The bug here is that they are phasing out of their rooms through the fence.

This bug has the same root cause as MCPE-173664 in that villagers try to get out of the bed on the same block where they stood when they got in the bed. The old behavior where they got out of bed at a predictable location determined strictly by the bed and the blocks around it was much easier to work with. The newer behavior that uses the villager's location is subject to random events that a player may not notice and may not be able to control, such as the villager being bumped by the player itself or other mobs.

migrated

(Unassigned)

1263013

Confirmed

Multiple

1.21.1 Hotfix

Retrieved