Mojira Archive
MC-119559

Block placement/connection logic is different for snow blocks and 8 layers of snow

The bug

You can place buttons, torches, etc against the sides of snow blocks, but not against the sides of a full block's worth of snow layers.
Similarly, fences and other connectable blocks will join to the snow block but not the layers.
As this doesn't seem to be a deliberate exclusion, I thought it should be raised as an issue.
It's also worth noting that in 1.12, you can't place a button on the top face of 8 layers of snow, which is something that was possible in 1.11.

Code solution

Changing BlockSnow#getBlockFaceShape to the following would make it's behaviour consistent with other 'full' blocks:

public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
    {
        return face == EnumFacing.DOWN || state.getValue(LAYERS) == 8 ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED;
    }

Cannot Reproduce

Ben Staddon

2017-07-19, 01:52 PM

2021-02-20, 09:18 AM

2021-02-20, 09:18 AM

8

6

Confirmed

(Unassigned)

place, snow, snow_block

Minecraft 1.12 - 1.15.1Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w21b, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w47a, Minecraft 18w47b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, 1.15.1

-