Command syntax changes in Java 1.17

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

Here is what changed in the command system between Minecraft Java Edition 1.16.5 and 1.17, based on the command trees in the game files. This release brings the total number of commands to 75.

Two new commands are now available, one legacy command was removed, and two existing commands received new syntax forms.

What changed for players

/item
This new command is now available in the 1.17 command tree. Players can run /item to use the new command options.
/perf
This is a new command added in Java Edition 1.17. You can now run /perf directly from the command line.
/replaceitem
This command has been removed from the game in 1.17. Players and scripts can no longer run /replaceitem.
/debug
You can now debug a specific function using /debug function <name>. The /debug report syntax form has been removed and can no longer be used.
/gamerule
Two new rule options are available while no previous rules were removed. You can now check or update these settings using /gamerule freezeDamage [<value>] and /gamerule playersSleepingPercentage [<value>].

Map makers and datapack creators should update any functions that still use /replaceitem or /debug report, while server owners can use the new /gamerule options to adjust sleeping percentages and freeze damage.

New commands

/item/perf

Removed commands

/replaceitem

/debug +1 −1

+ /debug function <name>− /debug report

/gamerule +2 −0

+ /gamerule freezeDamage [<value>]+ /gamerule playersSleepingPercentage [<value>]