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

Collision checking of block placement ignores block states of the item

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.16.5, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17
    • None
    • None
    • Confirmed
    • (Unassigned)

    Description

      When you have a block with a block state in item form and place it, the entity collision checking ignores the block states. This can lead to some strange valid or invalid placement conditions for certain blocks that have different collision boxes depending on the block state. Relates to MC-116877.

      Examples:

      If you use this command:

      /give @s chain{BlockStateTag:{axis:"y"}} 1

      and aim at the side of a block with the item, the entity collision checking thinks that the chain will be placed horicontally even though you place it vertically. This means that for exmple when you are standing on the edge of a non-full block like an enchanting table you will be able to place the chain inside yourself when aiming at the side of a block.

      If you use this command:

      /give @s end_stone_brick_slab{BlockStateTag:{type:"double"}} 1

      and aim at the floor you would usually place a bottom slab, but with the item you will place a double slab. However the entity collision checking still thinks you are placing a bottom slab allowing you to place the double slab inside yourself when jumping of standing on the edge of a non-full block like for example an enchanting table.

      If you aiming at the side of a block with the chain that places a vertical chain and standing like this you can see in this screenshot, you will not be able to place chain even though it wouldn’t be insde you, if you are aiming at the floor however it will work.

      This affects every block with any block state that changes the collision box.

      Attachments

        1. 2021-03-28_17.06.17.png
          2021-03-28_17.06.17.png
          392 kB
        2. 2021-03-28_17.13.09.png
          2021-03-28_17.13.09.png
          324 kB
        3. MC-221256.mp4
          6.15 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bugsbugsbugs bugsbugsbugs
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: