mojira.dev
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().

Comments 1

Added minecraft:column_pos due to MC-126913

intsuc

boq

Confirmed

argument

1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, , 1.19.3, 23w05a, 23w18a, 1.20.2, 23w42a

26.4 Snapshot 9

Retrieved