mojira.dev
MC-4389

Many blocks do not cause beds to become obstructed, causing rendering glitches

The bug

Drop an anvil on a bed. You can still sleep in the bed when you shouldn't be able to. This also works with other things such as pistons, blocks, enchantment tables, etc. As of 1.4.6, you are tossed aside with blocks atop beds, yet you are still allowed to sleep.

A solution for this could be to introduce an "obstructed" blockstate to beds, which applies when certain blocks are above it. Obstruction already happens with solid blocks. Logic like this could also be extended to chests and other blocks, causing them too to display hotbar text to guide new players.

Related issues

Attachments

Comments

migrated
[media][media][media]
kumasasa

Can you still sleep in the bed, when the anvil is dropped at the head section of the bed ?

migrated

Tested. You can still sleep and set spawn when anvil dropped at head section.

migrated

You can still sleep. When your sleeping the anvil also shows too.

migrated

The third picture now shows what it looks like sleeping with the anvil on the head section.

migrated

Perhaps the anvil in not considered to be 'in the way' because it is an entity?

migrated

It doesn't even matter if it's an anvil, you can sleep even when there are 2 dirt blocks right above the bed.

migrated

Should I adjust the title and summary then?

migrated

Yes do this please.

migrated

Confirmed.

migrated

I do believe a more definitive title would be "Sleeping with Blocks Atop Beds"

migrated

bump

kumasasa

@Bob Joe: Please stop bumping, this ticket is still open.

Ezekiel

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

migrated

Still a concern in 1.7.5 and 1.8.

migrated

Confirmed for 14w18b.

migrated

Cannot confirm in 1.8.2-pre1.

migrated

Confirmed in 15w47c.

migrated

Confirmed for 1.9-pre1

migrated

Confirmed for:
1.10 pre releases
1.10
1.10.1

FaRo1

Do I understand that correctly? It's not supposed to be able to sleep with blocks above the bed and that is the bug here?

bemoty

Can confirm for MC 1.12.1. Anvil can't be dropped from higher than one block though.

Asteraoth

Confirmed for 18w30b

Asteraoth

Confirmed for 18w31a

muzikbike

Affects 18w47a

muzikbike

Affects 18w47b

muzikbike

Affects 18w48a

muzikbike

Affects 18w48b, can I request ownership of the ticket?

Asteraoth

Gave the ticket to @unknown.

pulpetti

Confirmed in 1.16.1

pulpetti

Confirmed in 20w27a

pulpetti

In 20w29a

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

muzikbike

(Unassigned)

Confirmed

Platform

Low

Rendering

bed, entity-block-collision-and-intersection

Minecraft 1.4.4, Minecraft 1.4.5, Snapshot 12w49a, Snapshot 12w50a, Snapshot 12w50b, ..., 21w06a, 21w20a, 1.17 Pre-release 1, 1.20.4, 24w05b

Retrieved