mojira.dev
MC-148370

When entering a bed while moving, the player is not placed correctly or can fall out of the bed

The bug

When you have momentum and go to bed, your player is not well placed.

How to reproduce

  1. Jump, run in all directions and right click on the bed to sleep

  2. Observe how your character is in the bed

Example

Here is an example in video:

[media]

Linked issues

MC-153515 Sprinting and going into bed causes player to shift Resolved MC-153548 Running into a bed and sleeping will cause you to slide Resolved MC-153580 Bed Collision Bug Resolved MC-158752 Fall out of bed Resolved MC-164243 When I sleep next to a corner block I fall out of the wall. Resolved

Attachments

Comments 15

Simpler ways to reproduce:

  • Walk towards the bed as you enter it and you will slide slightly, becoming misaligned.

  • Sprint towards the bed as you enter it and you will slide even more.

  • Sprint towards the side of the bed under the Speed II effect and you will slide out of the bed.

I think the same behavior is what is causing the Villagers to become misaligned when they go to sleep.

Not only is my player halfway off the bed, but sometimes one of the arms will be stuck sticking up at an odd angle, like it was frozen in the middle of the walking/sprinting animation.

I've gotten inside my walls.

it can be reproduced easier when flying with elytra and going in bed

In 20w29a

5 more comments

Can confirm in 1.19.2.

Confirmed in 1.19.4. It is even possible to fall out of the bed without having the speed effect.

Confirmed in 23w13a.

Can confirm in 1.20.2

Can confirm in 1.20.6.

ZeNico13

(Unassigned)

Confirmed

Platform

Low

Player

bed, falling, moving, placement, player, player-model, sleeping

Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, ..., 1.20.4, 1.20.6, 1.21, 1.21.2 Pre-Release 3, 1.21.4

Retrieved