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.

Linked issues

Attachments

Comments 35

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

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

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

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

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

25 more comments

In 20w29a

Can confirm in 20w48a.

Can confirm in 20w51a.

Can confirm in 21w05b.

Can confirm in 21w06a.

ReduxMC

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