Command syntax changes in Java 26.1

Compared with 1.21.11: 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 26.1 against version 1.21.11. This release brings the total number of commands in the game to 91.

Compared to 1.21.11, there is one brand new command and syntax changes to two existing commands.

What changed for players

/swing
This is a new command added in version 26.1 that was not present in 1.21.11. Players can now run /swing in the game.
/fetchprofile
This command gained a new form that accepts an entity argument, while removing no previous forms. You can now target entities directly using /fetchprofile entity <entity>.
/time
Basic presets like /time set day, night, and midnight, along with /time query day and daytime, have been removed. Instead, you can now control specific clocks and rates using new forms like /time of <clock> pause, /time of <clock> rate <rate>, and /time of <clock> add <time>.

Map makers, data pack creators, and server administrators should pay close attention to these updates. Anyone maintaining custom worlds or command block creations from 1.21.11 will need to update their scripts if they rely on the removed /time set or /time query forms.

New commands

/swing

/fetchprofile +1 −0

+ /fetchprofile entity <entity>

/time +14 −6

+ /time of <clock> add <time>+ /time of <clock> pause+ /time of <clock> query <timeline> [repetition]+ /time of <clock> query time+ /time of <clock> rate <rate>+ /time of <clock> resume+ /time of <clock> set <time>+ /time of <clock> set <timemarker>+ /time pause+ /time query <timeline> [repetition]+ /time query time+ /time rate <rate>+ /time resume+ /time set <timemarker>− /time query day− /time query daytime− /time set day− /time set midnight− /time set night− /time set noon