Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-119559

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 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
    • Confirmed
    • (Unassigned)

      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;
          }
      

            Unassigned Unassigned
            quadraxis Ben Staddon
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: