Command syntax changes in Java 1.21.2

Compared with 1.21.1: 1 command added, 0 removed and 2 with a changed syntax. Measured by comparing the command trees that the two game versions generate.

Here on 9Minecraft Commands, we compared the command trees from the game files of Minecraft Java Edition 1.21.2 and 1.21.1. The new version brings the total number of commands to 84.

This update adds one new command and makes small updates to two existing ones.

What changed for players

/rotate
This is a brand new command added to the game in version 1.21.2. Players can now use /rotate directly in the command system.
/gamerule
Two new rule forms were added while no existing forms were removed. You can now run /gamerule disablePlayerMovementCheck [<value>] and /gamerule minecartMaxSpeed [<value>].
/experience
The command keeps the exact same forms as before, and only the argument names changed in the game files. An example of the updated naming form is /experience add <target> <amount>.

Map makers and server owners should review the new /rotate command and the two added /gamerule options to see how they fit into custom projects. Creators with existing command setups can rest easy knowing that no command forms were removed and /experience works the same way as before.

New commands

/rotate

/experience +8 −8 · argument names only

+ /experience add <target> <amount>+ /experience add <target> <amount> levels+ /experience add <target> <amount> points+ /experience query <target> levels+ /experience query <target> points+ /experience set <target> <amount>+ /experience set <target> <amount> levels+ /experience set <target> <amount> points− /experience add <targets> <amount>− /experience add <targets> <amount> levels− /experience add <targets> <amount> points− /experience query <targets> levels− /experience query <targets> points− /experience set <targets> <amount>− /experience set <targets> <amount> levels− /experience set <targets> <amount> points

/gamerule +2 −0

+ /gamerule disablePlayerMovementCheck [<value>]+ /gamerule minecartMaxSpeed [<value>]