mojira.dev
MC-124127

Command syntax help doesn't handle multiple optional arguments correctly

To reproduce, look at the command syntax help for /clear:

  1. Type in /clear

  2. Hit the space bar

  3. Hit esc

  4. You will see the command syntax help for /clear: /clear [<targets>] [<item>] (see attached screenshot)

The provided syntax suggests that

/clear minecraft:enchanted_book{}

is valid, which it isn't.

The correct syntax help for this example should be /clear [<targets> [<item>]].

Linked issues

Attachments

Comments

Nathan Adams

It only suggests that if you believe that optionals can be left out no matter their position, which is not true. An optional is required if you want to specify more arguments after it.

[Mod] redstonehelper

I do not believe that, but people unfamiliar with Minecraft's command system might when seeing this syntax help.

[Mod] redstonehelper

Nathan Adams

Confirmed

command-syntax-help

Minecraft 18w02a

Retrieved