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.

Related issues

MC-134571 Bed Glich MC-14374 You sometimes sink into the ground when falling asleep MC-15313 Slide off bed MC-53987 Bed Obstruction Glitch MC-68876 when sleeping in a bed i slide off MC-70371 I keep slipping off my bed MC-80677 Sliding Player (in bed) (bug) MC-91497 Players can be pushed out of beds MC-96964 if you sleep you slide next to the bed and then sleep MC-96973 Player gets pushed off of bed when sleeping in igloo or certain enviroment MC-97834 Bed player offset MC-101040 Bug on the Bed MC-101791 Sleeping Outside of Bed MC-102375 Jumping on the bed while sleeping MC-106829 Is click on my bed and i fall in water MC-107363 fall to the ground when sleeping (for block) MC-109695 Player partially slides off bed MC-116249 Player glitch when sleeping in bed on air block with blocks above MC-116339 Glitching out of Bed MC-116556 Sleeping in bed with wood log above causes player to continuously slide off bed MC-116956 Sleeping under a bookshelf causes walking animation MC-118563 Sleep walking MC-119204 Camera rotation/movement in bed when attempting to sleep with block above head. MC-119876 Problem with the bed. MC-121489 When sleeping in bed with blocks surrounding, camera starts moving MC-132286 Swimming Animation in Bed MC-133786 Falling off igloo bed. MC-133889 Walking Animation in Beds MC-133937 Bed glitch MC-134829 Player in bed has wrong position MC-134996 Beds MC-135209 Beds MC-136331 bed glitching MC-139385 when you sleep next too ice you roll off the bed MC-139612 I have found a bug where when you sleep and you start to walk off your bed. MC-140796 Getting in bed in an igloo glitches out and pushes you put of the bed MC-143083 Sleeping in a bed in 19w04b MC-144137 When sleeping under a staircase in a village body glitching out of bed. MC-144363 bed falling MC-145148 Odd Bed Behaviour

Attachments

Comments

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

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.

migrated

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

migrated

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

migrated

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.

migrated

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.

pizza2004

Can we get a confirmation of whether this happens in 13w10a and an update to the affected versions?

migrated

Confirmed 1.5.1

migrated

Just noticed this bug for the first time in 13w16a, so I confirm it occurs there. It occurs whenever I sleep in a bed which is in a room with a two-block-high ceiling (which seems a natural thing for a player to do on their first day when they've made a quick little hole-in-a-hill shelter).

migrated

Still in 1.6.2

migrated

I can confirm this happeing in 1.7.2, though 2-high ceiling isn't the problem in my case. I have recreated my bedroom area on my testing map (see screenshots) and I spammed sleeping in bed. I get thrown off the bed mainly because of the walls and probably because of the chest and I always face North, though coordinates still say the bed direction (in this case East). I've also tested this with nothing around the bed. You actually have a one-block-high drop on a bed (and maybe a small side offset), when it occurs, thus hitting a wall or ceiling will result sleeping on floor.

Ezekiel

Is this still a concern in the latest Minecraft version 14w02c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Jeuv

Reproduced in 14w02c.

migrated

Confirmed for 08a

migrated

Confirmed for 1.7.5 and 14w10c

Jeuv

Confirmed for 14w28a.

migrated

Confirmed for 14w28b

rydian

Confirmed for multiple directions in 1.8.1-pre2.

migrated

Tested in 1.8.4 and it appears to be client-side as Steve cannot trigger pressure-plates, take damage, or enter portals by falling inside them while sleeping. Further testing underway.

EDIT:
Confirmed to be client-side as command-blocks see you as being in the bed even though you've "fallen out of bed"

migrated

Confirmed for Snapshot 15w31a

migrated

Confirmed for 15w44b.

To reproduce, simply build a ceiling like the one in the first screenshot above the bed and try to sleep in it.

migrated

Confirmed for snapshot 15w47a

migrated

Confirmed for 15w47b

migrated

Confirmed for 15w49a

migrated

Confirmed for 1.8.9 and 15w51b.

migrated

Confirmed for 16w02a.

migrated

Confirmed for 16w03a.

migrated

Confirmed for 1.9-pre1. It affects coordinates shown in F3 as well.

SunCat

Confirmed for 1.9-pre2

migrated

Confirmed for 1.9.0

migrated

Confirmed for 1.9.1-pre3.

migrated

Confirmed for 1.9.3-pre3.

migrated

Confirmed for 16w20a.

migrated

Confirmed for 16w21a.

migrated

Confirmed for 16w21b.

migrated

Confirmed for 1.10-pre1.

migrated

Confirmed for 1.10-pre2.

migrated

Confirmed for 1.10.

migrated

Confirmed for 1.10.1.

migrated

Confirmed in 1.11

migrated

I think that this is caused by the sleeping player's hitbox not changed.

migrated

I can confirm this in 1.12.1.

muzikbike

Affects 18w11a

muzikbike

Affects 18w14a

muzikbike

Affects 18w16a

migrated

Affects 18w22c

muzikbike

Affects 1.13-pre1

muzikbike

Affects 1.13-pre2

muzikbike

Affects 1.13-pre3

migrated

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

muzikbike

Affects 1.13-pre4

Freakin_Sweet

Definitely affects 1.13 official release.

migrated

Affects 1.13.1 release

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