mojira.dev
MCPE-112938

/setblock block state syntax doesn't match Java Edition

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)

Comments 3

affects 1.17.30.20

Thank you for your report!
However, this issue is Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version History -- Snapshot Version History -- Feature Requests and Suggestions

Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

tryashtar

(Unassigned)

451191

Confirmed

Windows

vanilla-parity

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.18.30, 1.19.0, 1.19.70, 1.20.0.21 Preview, 1.21.60.28 Preview

Retrieved