When sleeping in a bed next to blocks, there is a chance that the player or a villager will end up inside the blocks when exiting the bed.
Related issues
is duplicated by
relates to
Attachments
Comments


Can confirm, also occurs with other blocks - when sleeping in a bed next to blocks villagers glitch into blocks next to their bed and sometimes through the wall, taking damage on the way.

19w12b. I woke up on the other side of a wall from an existing bed. Not sure if this is the same bug, wanted someone's opinion first unless someone knows what bug I'm actually experiencing. Basically the bed is against a corner of a wall where the corners of the wall are also connected. I spawn directly next to it but on the other side of the wall instead of the open space at the foot of the bed opposite of the wall.

Can confirm.

Can confirm. I have my base and bed in a cave. My bed is on the top floor 2-3 blocks underneath the surface. And each time I spawn on the surface. instead of besides my bed like in the previous snapshots.

I woke up underground and another time inside a wall. Leads to suffocation.

Confirmed in 19w12b and it is really annoying !

Confirmed in 19w12b as well had to restart server to save a few villagers and myself because of getting stuck in the blocks. Now that villagers sleep this is costly!

I've had to load from backups twice due to finding ALL my bed-using villagers missing (but the ones still in a defunct trading booth are fine each time).
I had a suspicion it was something like this as I tried to respawn villagers in their place, then slapped one while he was in bed and he teleported into a wall and suffocated.
It's a snapshot, so, problems bound to happen. But maaan I swear I only ever notice they're gone after dumping a bunch of hours on some big project. lol

I've noticed the game always tries to spit you out north or northwest of the bed. But when there are no blocks around, you are spat out on top of the bed.

After testing this, I readjusted the beds to face all 4 directions, but the villagers defaulted to the wall it was next to each time.
I moved it away from that wall, and it shoved them into the new adjacent wall.
I move it back a block, expecting them to be ejected into the same position in relation to the bed (thus into the middle of the room).
No, it puts them in the 3rd wall it was now next to, the opposite side of the bed they were hopping out of a few seconds before.
This makes no sense to me. It's like they're programmed to target the nearest walls.

Man, I woke up on the wrong side of the bed this morning, and boy did it make me grouchy!

This was a rude awakening when playing hardcore and sleeping underground when it shoved me into a wall and caused me to suffocate to death. Ah well, the hazards of playing hardcore on snapshots!

I just loaded 1.15 Pre-Release 1. I was testing an issue I had with the last snapshot where some villagers would not go to bed at night. I teleported to a snow village and instantly watched a villager die by suffocation, it's head was in the ceiling above or near the bed. You can see this in the screenshot I've attached. I've also included a fresh copy of the world (named Pre-Release1) created with seed#7333969029456169764. I have "cheats" enabled so you can quickly type in "/tp -502 70 -643" or "/tp -507 70 -642" to get to the point in the screenshot. (There are a lot of duplicates of similar behavior and I accidentally reported this in the Switch bug tracker at first. This seems to be the correct place to report it.)
Please create a new ticket for that.

Thank you, I've done as you've asked. https://bugs.mojang.com/browse/MC-166612