Command syntax changes in Java 1.21.6

Compared with 1.21.5: 3 commands added, 0 removed and 4 with a changed syntax. Measured by comparing the command trees that the two game versions generate.

Welcome back to 9Minecraft Commands. We compared the command trees from the game files of Minecraft Java Edition 1.21.5 and 1.21.6 to see what changed.

This update brings the total number of commands to 88, introducing three brand new commands and adding new syntax forms to four existing ones without removing any old options.

What changed for players

/dialog
This is a new command available in 1.21.6. Players can now run /dialog directly in the game.
/version
This new command has been added to the command tree. You can now type /version as a recognized command.
/waypoint
A new /waypoint command is now available in the game files for players to use.
/datapack
You can now create datapacks directly using a command. The new syntax is /datapack create <id> <description>.
/gamerule
A new game rule option is available to view or change. Players can now run /gamerule locatorBar [<value>].
/playsound
You can now play sounds through a new ui source category. This works with standard parameters, such as /playsound <sound> ui <targets> <pos> <volume> <pitch> [<minVolume>].
/stopsound
To match the new sound source, you can now stop sounds playing in the ui category. Use the form /stopsound <targets> ui [<sound>].

Datapack creators and map makers will find the new /datapack create option, /dialog, /waypoint, and the ui sound channel useful for their projects, while server administrators can take advantage of the new /version command and locatorBar gamerule.

New commands

/dialog/version/waypoint

/datapack +1 −0

+ /datapack create <id> <description>

/gamerule +1 −0

+ /gamerule locatorBar [<value>]

/playsound +5 −0

+ /playsound <sound> ui+ /playsound <sound> ui <targets>+ /playsound <sound> ui <targets> <pos>+ /playsound <sound> ui <targets> <pos> <volume>+ /playsound <sound> ui <targets> <pos> <volume> <pitch> [<minVolume>]

/stopsound +1 −0

+ /stopsound <targets> ui [<sound>]