Command syntax changes in Java 1.15

Compared with 1.14.4: 1 command added, 0 removed and 6 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.14.4 and 1.15. This release brings the total number of commands to 72 by adding one new command and updating six existing ones.

What changed for players

/spectate
This is a completely new command added in 1.15.
/data
You can now use a storage target to get and merge data, or modify block data by appending or inserting from storage. For example, you can run /data get storage <target> or /data merge storage <target> <nbt>.
/effect
A shorter form was added to clear effects without extra arguments. Players can now simply run /effect clear.
/execute
You can now check data storage and predicates, or store results into storage as a byte, double, or float. New options include /execute if predicate <predicate> and /execute if data storage <source> <path>.
/gamerule
Five new gamerules are available to toggle specific damage types, insomnia, and immediate respawning. You can now use doImmediateRespawn, doInsomnia, drowningDamage, fallDamage, and fireDamage.
/kill
The target argument is now optional instead of required. The syntax changed from /kill <targets> to /kill [<targets>].
/schedule
You can now clear scheduled functions or choose whether to append or replace them when scheduling. For instance, you can use /schedule clear <function> or /schedule function <function> <time> append.

Data pack creators and map makers will get the most out of the new data storage options in /data and /execute, as well as the expanded control in /schedule. Server owners and casual players will also find the five new /gamerule settings and the shorter /kill and /effect clear commands convenient for managing gameplay.

New commands

/spectate

/data +34 −0

+ /data get storage <target>+ /data get storage <target> <path> [<scale>]+ /data merge storage <target> <nbt>+ /data modify block <targetPos> <targetPath> append from storage <source> [<sourcePath>]+ /data modify block <targetPos> <targetPath> insert <index> from storage <source> [<sourcePath>]+ /data modify block <targetPos> <targetPath> merge from storage <source> [<sourcePath>]+ /data modify block <targetPos> <targetPath> prepend from storage <source> [<sourcePath>]+ /data modify block <targetPos> <targetPath> set from storage <source> [<sourcePath>]+ /data modify entity <target> <targetPath> append from storage <source> [<sourcePath>]+ /data modify entity <target> <targetPath> insert <index> from storage <source> [<sourcePath>]+ /data modify entity <target> <targetPath> merge from storage <source> [<sourcePath>]+ /data modify entity <target> <targetPath> prepend from storage <source> [<sourcePath>]+ /data modify entity <target> <targetPath> set from storage <source> [<sourcePath>]+ /data modify storage <target> <targetPath> append from block <sourcePos> [<sourcePath>]+ /data modify storage <target> <targetPath> append from entity <source> [<sourcePath>]+ /data modify storage <target> <targetPath> append from storage <source> [<sourcePath>]+ /data modify storage <target> <targetPath> append value <value>+ /data modify storage <target> <targetPath> insert <index> from block <sourcePos> [<sourcePath>]+ /data modify storage <target> <targetPath> insert <index> from entity <source> [<sourcePath>]+ /data modify storage <target> <targetPath> insert <index> from storage <source> [<sourcePath>]+ /data modify storage <target> <targetPath> insert <index> value <value>+ /data modify storage <target> <targetPath> merge from block <sourcePos> [<sourcePath>]+ /data modify storage <target> <targetPath> merge from entity <source> [<sourcePath>]+ /data modify storage <target> <targetPath> merge from storage <source> [<sourcePath>]+ /data modify storage <target> <targetPath> merge value <value>+ /data modify storage <target> <targetPath> prepend from block <sourcePos> [<sourcePath>]+ /data modify storage <target> <targetPath> prepend from entity <source> [<sourcePath>]+ /data modify storage <target> <targetPath> prepend from storage <source> [<sourcePath>]+ /data modify storage <target> <targetPath> prepend value <value>+ /data modify storage <target> <targetPath> set from block <sourcePos> [<sourcePath>]

/effect +1 −0

+ /effect clear

/execute +16 −0

+ /execute if data storage <source> <path> […execute]+ /execute if predicate <predicate> […execute]+ /execute store result storage <target> <path> byte <scale> …execute+ /execute store result storage <target> <path> double <scale> …execute+ /execute store result storage <target> <path> float <scale> …execute+ /execute store result storage <target> <path> int <scale> …execute+ /execute store result storage <target> <path> long <scale> …execute+ /execute store result storage <target> <path> short <scale> …execute+ /execute store success storage <target> <path> byte <scale> …execute+ /execute store success storage <target> <path> double <scale> …execute+ /execute store success storage <target> <path> float <scale> …execute+ /execute store success storage <target> <path> int <scale> …execute+ /execute store success storage <target> <path> long <scale> …execute+ /execute store success storage <target> <path> short <scale> …execute+ /execute unless data storage <source> <path> […execute]+ /execute unless predicate <predicate> […execute]

/gamerule +5 −0

+ /gamerule doImmediateRespawn [<value>]+ /gamerule doInsomnia [<value>]+ /gamerule drowningDamage [<value>]+ /gamerule fallDamage [<value>]+ /gamerule fireDamage [<value>]

/kill +1 −1

+ /kill [<targets>]− /kill <targets>

/schedule +3 −0

+ /schedule clear <function>+ /schedule function <function> <time> append+ /schedule function <function> <time> replace