Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-112938

/setblock block state syntax doesn't match Java Edition


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Preview, Preview, Preview, Beta, 1.17.11 Hotfix, Beta, Beta, 1.17.10, Beta, Beta, Beta, Beta, Beta, 1.16.210, 1.18.30, 1.19.0, 1.19.70, Preview
    • Confirmed
    • Windows
    • 451191

      The bug

      The new beta finally introduces the ability to specify block states in commands. The syntax resembles, but is incompatible with, Java's syntax, which was established in version 1.11 back in 2016 and has remained consistent ever since.

      Java's syntax is [key=value], and the current beta syntax is ["key":"value"]. This introduces disparity for no reason.

      How to reproduce

      /setblock ~ ~ ~ wool[color=blue]
      Syntax error
      Expected result:
      Blue wool is placed (until the flattening)

            tryashtar [Mod] tryashtar
            15 Vote for this issue
            7 Start watching this issue