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

Unclear command target conventions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2, 20w17a, 20w18a, 1.16.1
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Commands

      Description

      The newest commands 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|modifier) …
      

      and here is the one of the experience command:

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

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

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

      Therefore, here is a list of affected commands:

      Current syntax Suggested syntax
      advancement (grant|revoke) <targets> …
          … everything
          … only <advancement> [<criterion>]
          … (from|through|until) <advancement>
      
      advancement <targets> (grant|revoke) …
          … everything
          … only <advancement> [<criterion>]
          … (from|through|until) <advancement>
      
      data …
          … get <TARGET> [<path>] [<scale>]
          … merge <TARGET> <nbt>
          … modify <TARGET> <targetPath> (append|insert <index>|merge|prepend|set) …
              … from …
                  … block <sourcePos> <sourcePath>
                  … entity <source> <sourcePath>
                  … storage <source> <sourcePath>
              … value <nbt>
          … remove <TARGET> <path>
      
      <TARGET> = …
          … block <targetPos>
          … entity <target>
          … storage <target>
      
      data <TARGET> …
          … get [<path>] [<scale>]
          … merge <nbt>
          … modify <targetPath> (append|insert <index>|merge|prepend|set) …
              … from …
                  … block <sourcePos> <sourcePath>
                  … entity <source> <sourcePath>
                  … storage <source> <sourcePath>
              … value <nbt>
          … remove <path>
      
      <TARGET> = …
          … block <targetPos>
          … entity <target>
          … storage <target>
      
      datapack …
          … disable <name>
          … enable <name> […]
              … (first|last)
              … (before|after) <existing>
          … list [available|enabled]
      
      datapack …
          … list [available|enabled]
          … <name> …
              … disable
              … enable […]
                  … (first|last)
                  … (before|after) <existing>
      
      effect …
          … give <entity> <effect> [<seconds>] [<amplifier>] [<hideParticles>]
          … clear <entity> [<effect>]
      
      effect <entity> …
          … give <effect> [<seconds>] [<amplifier>] [<hideParticles>]
          … clear [<effect>]
      
      (experience|xp) …
          … add <players> <amount> [points|levels]
          … set <players> <amount> [points|levels]
          … query <player> (points|levels)
      
      (experience|xp) …
          … <players> …
              … add <amount> [points|levels]
              … set <amount> [points|levels]
          … <player> query (points|levels)
      
      recipe …
          … give <targets> (name|*)
          … take <targets> (name|*)
      
      recipe <targets> …
          … give (name|*)
          … take (name|*)
      
      schedule …
          … function <function> <time> [append|replace]
          … clear <function>
      
      schedule function <function> …
          … append <time>
          … replace <time>
          … clear
      

      (see also MC-177506)

      scoreboard players …
          … add <targets> <objective> <score>
          … enable <targets> <objective>
          … get <target> <objective>
          … list [<target>]
          … remove <targets> <objective> <score>
          … operation <targets> <targetObjective> <operation> <source> <sourceObjective>
          … reset <targets> [<objective>]
          … set <targets> <objective> <score>
      
      scoreboard players …
          … list
          … <target> …
              … get <objective>
              … list
          … <targets> …
              … add <objective> <score>
              … enable <objective>
              … operation <targetObjective> <operation> <source> <sourceObjective>
              … remove <objective> <score>
              … reset [<objective>]
              … set <objective> <score>
      
      team …
          … add <team> [<displayName>]
          … empty <team>
          … join <team> [<members>]
          … leave <members>
          … list [<team>]
          … modify <team> <option> <value>
          … remove <team>
      
      team …
          … leave <members>
          … list
          … <team> …
              … add [<displayName>]
              … empty
              … join [<members>]
              … list
              … modify <option> <value>
              … remove
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              CHK: