Mojira Archive
MC-172634

Argument types contain syntactically incorrect examples

The bug

Argument types of commands have examples to find ambiguities in the registered commands. The documentation comment says, This is not fool proof, and relies a lot on the providers of the used argument types to give good examples.

However, some argument types have a syntactically incorrect example. This may prevent the game from detecting ambiguities in the commands in the future.

Corrections

Argument type Incorrect example Corrected example
minecraft:column_pos ^ ^, ^-1 ^0 Remove them, see MC-126913
minecraft:block_state foo{bar=baz} foo{bar:baz}
minecraft:block_predicate #stone[foo=bar] {baz=nbt} #stone[foo=bar] {baz:nbt}
minecraft:item_stack stick{foo=bar} stick{foo:bar}
minecraft:item_predicate
Fixed in 24w05a
#stick{foo=bar} #stick{foo:bar}
minecraft:component "{"text":"hello world"} {"text":"hello world"}
minecraft:nbt_compound_tag {foo=bar}|{foo:bar}|
|minecraft:nbt_tag|{foo=bar}
{foo:bar}
minecraft:nbt_path {foo=bar} {foo:bar}
minecraft:objective * Remove it

The argument types are registered in net.minecraft.commands.synchronization.ArgumentTypes.bootStrap().