Mojira Archive
MC-179947

Misplaced /attribute target parameter

The attribute command does not follow the same target parameter positioning conventions as the other commands.

For example, here is the syntax of the attribute command from the wiki:

attribute <target> <attribute> (get|base get|base set|…) …

and here is the one of the experience command:

experience (add|set|query) <players> …

Following the syntax of other commands, that of attribute should rather be as follows:

attribute (get|base get|base set|…) <target> <attribute> …

The full tree would then be:

attribute …
    … get <target> <attribute> [<scale>]
    … base …
        … get <target> <attribute> [<scale>]
        … set <target> <attribute> <value>
    … modifier …
        … add <target> <attribute> <uuid> <name> <value> (add|multiply|multiply_base)
        … remove <target> <attribute> <uuid>
        … value <target> <attribute> get <uuid> [<scale>]

Original syntax (from the wiki):

attribute <target> <attribute> …
    … get [<scale>]
    … base …
        … get [<scale>]
        … set <value>
    … modifier …
        … add <uuid> <name> <value> (add|multiply|multiply_base)
        … remove <uuid>
        … value get <uuid> [<scale>]

Invalid

Adrien LESÉNÉCHAL

2020-04-22, 10:09 PM

2024-05-28, 10:02 AM

2024-05-28, 10:02 AM

9

5

Confirmed

Commands

command

1.15.2 - 1.201.15.2, 20w17a, 20w18a, 1.16.1, 1.17.1, 1.18.1, 1.19.4, 1.20 Release Candidate 1, 1.20

-