Command syntax changes in Java 1.20.3

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

Here at 9Minecraft Commands, we compared the command trees from the game files of Minecraft Java Edition 1.20.2 and 1.20.3. This update introduces one brand new command and expands the syntax for four existing commands.

No command forms were removed in this version, and the game now has a total of 82 commands.

What changed for players

/tick
This is a completely new command added to the game in 1.20.3. Players can now run /tick directly from the command line.
/execute
You can now check the result of a function directly inside an execute chain using the new if and unless function subcommands. For example, you can use /execute if function namespace:test run say passed to run a command based on a function.
/gamerule
Four new gamerules were added to control command fork counts, Nether portal delays in default or creative modes, and whether projectiles can break blocks. You can adjust these settings with commands like /gamerule projectilesCanBreakBlocks false or /gamerule maxCommandForkCount 100.
/return
This command now accepts fail and run arguments in addition to returning a value. Command writers can now use /return fail or chain another command using /return run say finished.
/scoreboard
Players can now modify objective auto-updating, change objective number formats to blank, fixed, or styled, and set custom display names for specific player entries. For example, you can hide numbers with /scoreboard objectives modify points numberformat blank or set a player display name with /scoreboard players display name @p points.

Data pack creators and map makers should pay close attention to the new /execute, /return, and /scoreboard options for building logic and customizing displays. Server owners and administrators will also find the new /tick command and the four new /gamerule settings useful for managing their worlds.

New commands

/tick

/execute +2 −0

+ /execute if function <name> …execute+ /execute unless function <name> …execute

/gamerule +4 −0

+ /gamerule maxCommandForkCount [<value>]+ /gamerule playersNetherPortalCreativeDelay [<value>]+ /gamerule playersNetherPortalDefaultDelay [<value>]+ /gamerule projectilesCanBreakBlocks [<value>]

/return +2 −0

+ /return fail+ /return run <command>

/scoreboard +8 −0

+ /scoreboard objectives modify <objective> displayautoupdate <value>+ /scoreboard objectives modify <objective> numberformat [blank]+ /scoreboard objectives modify <objective> numberformat fixed <contents>+ /scoreboard objectives modify <objective> numberformat styled <style>+ /scoreboard players display name <targets> <objective> [<name>]+ /scoreboard players display numberformat <targets> <objective> [blank]+ /scoreboard players display numberformat <targets> <objective> fixed <contents>+ /scoreboard players display numberformat <targets> <objective> styled <style>