Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-179947

Misplaced /attribute target parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 20w17a, 20w18a, 1.16.1, 1.17.1, 1.18.1, 1.19.4, 1.20 Release Candidate 1, 1.20
    • Confirmed
    • Commands

      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>]
      

            Unassigned Unassigned
            Derugon Adrien LESÉNÉCHAL
            Votes:
            9 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: