Command syntax changes in Java 1.21.9

Compared with 1.21.8: 1 command added, 0 removed and 3 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.8 and 1.21.9 to see what changed.

This release brings the total number of commands to 89 by adding one new command, updating the gamerule list, and renaming arguments in two existing spawn commands.

What changed for players

/fetchprofile
This is a completely new command added to the game in version 1.21.9. Players and admins can now run /fetchprofile directly from the command line.
/gamerule
Five new options are available to toggle PvP, monsters, Nether portals, command blocks, and spawners, such as /gamerule pvp [] and /gamerule commandBlocksEnabled []. Also, the /gamerule spawnChunkRadius [] form has been removed.
/setworldspawn
The command structure works the same way, but the argument names in the command tree have been updated. The syntax now displays as /setworldspawn [].
/spawnpoint
Like the world spawn command, only the argument names have changed while keeping the same forms. It is now written as /spawnpoint [].

Server owners and map makers will find the new /gamerule options useful for controlling PvP, Nether portal travel, and block execution directly through commands, while datapack creators should check their scripts if they relied on the removed spawnChunkRadius rule.

New commands

/fetchprofile

/gamerule +5 −1

+ /gamerule allowEnteringNetherUsingPortals [<value>]+ /gamerule commandBlocksEnabled [<value>]+ /gamerule pvp [<value>]+ /gamerule spawnMonsters [<value>]+ /gamerule spawnerBlocksEnabled [<value>]− /gamerule spawnChunkRadius [<value>]

/setworldspawn +1 −1 · argument names only

+ /setworldspawn <pos> [<rotation>]− /setworldspawn <pos> [<angle>]

/spawnpoint +1 −1 · argument names only

+ /spawnpoint <targets> <pos> [<rotation>]− /spawnpoint <targets> <pos> [<angle>]