mojira.dev
MC-112

Blocks/entities above beds push players out of bed

The bug

Trying to sleep in a bed often can cause the player to fall out of it. The fall direction depends on the layout of the ceiling. One example to reproduce the bug is attached here as a screenshot but there are a lot of different layouts that cause the problem.

The bug is probably caused by some part of the game code thinking the player is still standing (on the bed) and intersecting the ceiling so it tries to move it out there.

Linked issues

MC-14374 You sometimes sink into the ground when falling asleep Resolved MC-15313 Slide off bed Resolved MC-53987 Bed Obstruction Glitch Resolved MC-68876 when sleeping in a bed i slide off Resolved MC-70371 I keep slipping off my bed Resolved

Attachments

Comments 52

Confirmed in 1.4.2 pre-release, the player will appear to fall or roll out of bed, as if being pushed out of a block, when they lay in a bed below blocks.

Played with it. Weird effect! I made a very tall tower with bed with block above it. could sleep in it, but fell off. I feel long way down but didn't stand or even get hurt. But when I woke up, I fell off bed AGAIN but this time died. lol

Confirmed, player falls out of bed, but sleeping still works.

Other weird effect is that you can sleep while flying. However if this bug happens, you fly off into air. When you wake up, you will fly off again.

same situation in 1.4.6-1.4.7
in multiplay, when i am in bed, it seemed to be nomal by others, but in my sight,
i fall of with heading crossed direction with bed.
also presure plate not activated whenever the player fall.

42 more comments

Affects 1.13-pre3

I can vouch that this issue affects 1.13-pre3 tested in igloos.

Affects 1.13-pre4

Definitely affects 1.13 official release.

Affects 1.13.1 release

Jonathan Haas

muzikbike

boq

Confirmed

bed, block, sleep, sleeping

Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, ..., Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a

Minecraft 19w11a

Retrieved