Steps to reproduce
Load
Use the buttons to switch between day and night.
As shown in
, replace the red/glass block with various combinations of slabs, glass and solid blocks.
Expected result
The villager finds an open, available spot next to its bed when exiting the bed, refusing to collide with an motion-blocking block.
Observed result
The villager avoids colliding with solid bocks but can be offset inside of and through non-solid motion-blocking blocks such as glass and slabs.
I have an underground village with villagers kept in place by cubicles with oak wood slabs around them top and bottom so they can't jump out but I can see in.
They have a bed and workstation and now they have started glitching out through the slabs after they go to sleep and get out of bed, this didn't happen before the update 2 days ago
They now are not confined to their own cubicle and are running around at risk of falling into my iron farm
I'm playing on my own realm on Xbox one X
Related issues
Attachments
Comments


The villagers that glitched out of their area have also unlinked from their workstations and beds and golems have completely stopped spawning
They jump from the bed into a block and out the other side, tried with glass and it still happens

Added a new screenshot where it shows the villagers when they spawn straight from the bed into a slab, they then walk out the other side
It’s still happening

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

This is the same behavior with players exiting beds reported at MCPE-143208. The game is using similar logic for exiting beds that it uses when checking for block collisions during environmental spawning. It
finds a spot where there is a solid top surface underneath and no solid blocks colliding with the mob, then
offsets the mob based on collisions with full blocks at that spot, then
allows collisions with non-solid blocks at the offset position.