mojira.dev
MC-68200

Players can spawn outside of their house when waking up from a bed/respawning at a bed

Bed Spawns Outside on Wakeup

What I expected to happen was...:
Spawn Inside the building on "wake up"

What actually happened was...:
Spawned outside the building on "wake up"

Steps to Reproduce (updated for 20w30a):

  1. Construct a room without the corner blocks where the walls meet

  2. Place a bed with the foot of the bed in the corner of the room

  3. Stand on the bed such that the pillow is to your left

  4. Sleep in the bed and wake up
    → ❌ You wake up outside the room

  5. Die and respawn:

    /kill

    → ❌ You respawn outside the room

Related issues

Attachments

Comments

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

That is how beds have always worked.

migrated

I find it difficult to understand why this bug has been closed as "works as intended".  Waking up on a corner is always at least a little weird, sometimes actually difficult, and sometimes places this bizarre restriction on architecture.

For a position to place the player, the game first considers the 10 blocks adjacent to the bed.  Is it really so hard to pick out the 6 which are not corners, before the corners are considered?

Yesterday, I posted an attachment on MC-146760 because this one didn't come up in search.  The attachment shows my bed in a Pillager outpost, with two blocks of yellow concrete showing where I woke up.  The position was not just diagonal, it was 2 blocks down with no straightforward way up.  (There were vines in those 2 blocks, that might be another bug.)  The Pillager outpost has nice architecture, but beds would have to be placed strangely to avoid this weird issue. 

[media]

(Oh, how many bugs does Atlassian have?! That image was shown in full when I pasted the link into the editor, but is dead after posting.  It's not even a link!  Oh well, click the MC link above, it's the only attached image.)

migrated

Haha! What? Isn't this how your bed works? You think you're going to sleep in the bed in your room, but instead you wake up on the roof of a casino in Las Vegas! And that is clearly how beds were always intended to work in Minecraft!

Obviously sarcasm. This is ridiculous.

Victor_sueca

I think this "bug" is rather useful, it has been used before in RPG-like adventure maps to move players into the next area upon resting. By contrast, if you want to prevent this from happening in your house in survival it should be as simple as properly covering your house's corners with blocks or moving the bed 1 block away from the corner. Or maybe you could instead use that in your favor and make a secret room or a hidden escape route... think about the possibilities!

migrated

I can also confirm this. Happens if the bed is in the corner of the house. Players, but also villagers wake up at the outside corner of the house. Notable in savanna villages

j_p_smith

Confirmed in 1.15.2 and 20w22a.

j_p_smith

Confirmed in 20w30a.

galaxy_2alex

Using what exact setup? There have been some significant changes to how a bed spawns the player.

j_p_smith

Enter the bed shown below while standing on it, with the pillow to your left. You will wake up on the other side of the wall, and will also respawn on the other side of the wall after being killed.

[media]

[media]
Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

I've attached an updated video which demonstrates this issue.

Avoma

Can confirm in 1.16.5 and 21w08b.

MMK21

Affects 1.18.1

migrated

(Unassigned)

Confirmed

(Unassigned)

Minecraft 14w33c, Minecraft 14w34b, 1.14.4, 1.15.2, 20w22a, ..., 1.18.1, 23w42a, 1.20.5, 1.20.6, 1.21 Pre-Release 4

Retrieved