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

Certain blockstates are ignored when using /setblock

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.3, 1.16.4 Release Candidate 1
    • None
    • Java: 1.8.0_51 64bit
      Windows 10 Pro 64bit version 2004
    • Unconfirmed
    • (Unassigned)

      The /setblock command does not create blocks using the blockstates defined by the user in their command, instead the placed block will change some of its blockstates to be the same as if the block had been placed by a hand.

      Below I have a few examples comparing 1.15 to 1.16 this most likely is not a list that contains all of the blockstates which are ignored upon creating a block with /setblock but it should hopefully give you a good idea of what the issue is so that it can be fixed.

       

      Stairs:

      Ignored blockstates - "shape"

      Command used in example - "/setblock ~-3 ~ ~ minecraft:oak_stairs[facing=west, half=bottom, shape=inner_left, waterlogged=false]"

       

       

      Fence / Iron bars / Glass Pane:

      Ignored blockstates - "north", "east", "south", "west"

      Command used in example - "/setblock ~-3 ~ ~ minecraft:{oak_fence/iron_bars/glass_pane}[north=true, south=true, east=false, west=false, waterlogged=false]"

       

       

       

       

      Wall:

      Ignored blockstates - "up", "north", "east", "south", "west"

      Command used in 1.15 example - "/setblock ~-3 ~ ~ minecraft:cobblestone_wall[north=true, south=true, east=false, west=false, waterlogged=false]"

      Command used in 1.16 example - "/setblock ~-3 ~ ~ minecraft:cobblestone_wall[up=false, north=tall, south=low, east=none, west=none, waterlogged=false]"

       

       

      Fence gate:

      Ignored blockstates - "in_wall"

      Command used in example - "/setblock ~-3 ~ ~ minecraft:oak_fence_gate[facing=east, open=false, in_wall=false, powered=false]"

       

        1. fence_gate - 1.15.gif
          102 kB
          Alex Royle
        2. fence_gate - 1.16.gif
          91 kB
          Alex Royle
        3. fence - 1.15.gif
          58 kB
          Alex Royle
        4. fence - 1.16.gif
          52 kB
          Alex Royle
        5. glass_pane - 1.15.gif
          60 kB
          Alex Royle
        6. glass_pane - 1.16.gif
          75 kB
          Alex Royle
        7. iron_bars - 1.15.gif
          56 kB
          Alex Royle
        8. iron_bars - 1.16.gif
          40 kB
          Alex Royle
        9. stairs.gif
          56 kB
          Alex Royle
        10. stairs - 1.16.gif
          89 kB
          Alex Royle
        11. wall - 1.15.gif
          88 kB
          Alex Royle
        12. wall - 1.16.gif
          57 kB
          Alex Royle

            Unassigned Unassigned
            Billy5804 Alex Royle
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: