mojira.dev
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>]

Comments 8

This seems like a feature request more than a bug report

Inconsistencies can also be bugs. It's up to the developers whether they consider this working as intended or not.
In this case I find it unlikely that they will change existing commands.

@[Helper] Misode

Thanks for telling me that, I didn't know ;_

Hello. Since the new item command does not follow the format of the attribute command, I put the commands that could be modified to follow both syntaxes. I apologize for the bad English, feel free to tell me or change the description if there are any mistakes or if some parts are incomprehensible.

I suggest changing this report to only be about /attribute, as all other commands seem to follow the same ruling.

@Dhranios
That's a better idea, thank you, the title and description have been updated.

Still in 1.19.4 and 1.20-pre6.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Adrien LESÉNÉCHAL

(Unassigned)

Confirmed

Commands

command

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

Retrieved