mojira.dev
MC-152945

Villagers can wake up through walls when getting out of bed

Villagers are able to wake up through walls (primarily corners) instead of waking up next to, or on top of their beds.

Steps to Reproduce:

  1. Replicate the following structure:

    [media]
  2. Spawn a villager on top of the bed

  3. Set time to night

  4. Set time to day

Expected & Observed Results:

❌ - The villager will wake up on top of the bed.
✔ - The villager would not (apprea to) warp/glitch through the wall when waking up.

Screenshots/Videos:

[media]

Notes:

This most often occurs when a villager's bed is almost entirely surrounded by blocks aside from one corner, where instead of waking up on top of the bed, will prefer to wake up outside the enclosed space.

Old Description:

Re: MC-146360. It seems like if there is an open block next to the bed, the villager will now spawn on it which is an improvement. I disagree this is fixed though.

Imagine you are inside a room that is wall to wall bed (i.e. in the game the interior of the room is 1 wide 3 high and 2 deep). There is a bed on the floor. You sleep in the bed at night (so far so good: in the game this works fine). But when you wake up, because there is no floor next to the bed your only choice is to stand on the bed. 

It seems clear this is what should happen, but this is not what villagers do. If there is no spot next to the bed for them, villagers continue to glitch through walls even when there is space for them on top of the bed. I think if there is no spot next to the bed, but there is room over the bed, they should get out of bed by standing on the bed, like what you would do in real life.

Linked issues

Attachments

Comments 30

Even in a room  1 wide 3 high and 3 deep with a bed on a floor they usually wake up on the empty floor spot, but sometimes are glitching through walls sideways.

I did have stone above the bed like this

X - Stone
F - Foot of Bed
P - Pillow of Bed
W - Workstation

XXXXX
XX  X
X
XFP W
XXXXX

I'm going to try

XXXXX
X   X
X
XFP W
XXXXX

I wanted to force them to stand near the window in the front for trading. I'll also try turning the bed.

XXXXX
X   X
X
XPF W
XXXXX

Putting the pillow against the wall as shown above the villagers glitch through the wall at the head of the bed. So that's new. I notice you can kind of push the villagers around the bed, and that they are a bit longer than the bed. I really hope I don't need these chambers 4 deep so there is space for their heads and feet on both ends...

XXXXXX
X    X
X
X PF W
XXXXXX

Gotta trading hall full of like 30 villagers all glitching through walls since I gave them beds.

In the attachment one villagers has glitched over into his neighbor's area, while the other villager is sleeping under the bed. 

It sounds like I don't even need to bed to refresh my trades, though the bug still stands. In fact it sounds like what I needed was two floor tiles to allow the villagers to leave and return to the station like so (which is also ridiculous):

XXXX
X  X
X
X  W
XXXX

20 more comments

Requesting ownership for this bug report considering the original reporter hasn't been active in 4 years

Affects 1.20.1

I would like to request ownership of this issue.

Minecraft386882

Can confirm in 1.21.4 release candidate 3 

James

[Mod] Jingy

(Unassigned)

Community Consensus

Gameplay

Normal

Village system

villager

Minecraft 1.14.1, 1.15.2, 20w15a, 20w16a, 20w17a, ..., 23w51b, 24w07a, 24w14a, 1.20.6, 1.21.4 Release Candidate 3

Retrieved