mojira.dev
MCPE-143208

Player may be placed inside a block after sleeping in a bed

Description from @unknown

Getting out of bed after sleep, the player can get up in some incomplete blocks, leaves, glass, beacon and some other blocks.

It can happen by accident. The player does not always stand in these blocks. To accurately reproduce this problem, you need to build a small structure. More details in steps to reproduce. And I will give a list of blocks in which the player may find himself getting out of bed.

  • Chests

  • Glass

  • Shulker Box

  • Leaves

  • Beacon

  • TNT

  • Lectern

  • Composter

  • Cauldron

  • Anvil

  • Brewing Stand

  • Azalea

  • Pointed Dripstone

  • Big Dripleaf

  • Dragon Egg

  • Grindstone

Steps to reproduce:

  1. Build the structure as shown in the image.

    [media]
  2. Place the affected block in place of the diamond block (list above).

  3. Go to sleep.

  4. Get out of bed.

Observed results:
The player will be inside the block.

Expected results:
When the player gets out of bed, he must not get inside the blocks.

Video:

[media]

Original Description
When I fell asleep it turns out that when I wake up, he directs me to the side of the bed but inside or on the chest

Related issues

Attachments

Comments

migrated
[media][media][media][media][media]
[Mod] EVGENSYPERPRO

I confirm. I did a little research on this issue.


Description from @unknown

Getting out of bed after sleep, the player can get up in some incomplete blocks, leaves, glass, beacon and some other blocks.

It can happen by accident. The player does not always stand in these blocks. To accurately reproduce this problem, you need to build a small structure. More details in steps to reproduce. And I will give a list of blocks in which the player may find himself getting out of bed.

  • Chests

  • Glass

  • Shulker Box

  • Leaves

  • Beacon

  • TNT

  • Lectern

  • Composter

  • Cauldron

  • Anvil

  • Brewing Stand

  • Azalea

  • Pointed Dripstone

  • Big Dripleaf

  • Dragon Egg

  • Grindstone

Steps to reproduce:

  1. Build the structure as shown in the image.

    [media]
  2. Place the affected block in place of the diamond block (list above).

  3. Go to sleep.

  4. Get out of bed.

Observed results:
The player will be inside the block.

Expected results:
When the player gets out of bed, he must not get inside the blocks.

Video:

[media]
GoldenHelmet

Only happens for me if the bed is placed along the X axis.

GonzoStudioz

This also effects 1.18.2

GoldenHelmet

Villagers have the same bed exiting behavior, which I have confirmed at MCPE-142544. The game is using similar logic for exiting beds that it uses when checking for block collisions during environmental spawning. It

  1. finds a spot where there is a solid top surface underneath and no solid blocks colliding with the mob, then

  2. offsets the mob based on collisions with full blocks at that spot, then

  3. allows collisions with non-solid blocks at the offset position.

migrated

(Unassigned)

639987

Confirmed

Multiple

1.19.60.24 Preview, 1.18.33 Hotfix, 1.18.10.20 Beta, 1.18.0.20 Beta, 1.17.32, ..., 1.18.31, 1.19.51, 1.20.30, 1.21.51 Hotfix, 1.21.81 Hotfix

Retrieved