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

/setblock block state syntax doesn't match Java Edition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.80.21 Preview, 1.19.40.23 Preview, 1.19.10.22 Preview, 1.17.40.20 Beta, 1.17.11 Hotfix, 1.17.20.23 Beta, 1.17.20.22 Beta, 1.17.10, 1.17.0.50 Beta, 1.16.230.50 Beta, 1.16.210.61 Beta, 1.16.210.54 Beta, 1.16.210.53 Beta, 1.16.210, 1.18.30, 1.19.0, 1.19.70, 1.20.0.21 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
            Votes:
            15 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: