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

The name of Entity Argument is plural in Query literal node of Experience command

XMLWordPrintable

    • Confirmed
    • Commands, Text
    • Low
    • Platform

      Description of issue

      The command with issue is (experience|xp) query <targets> (levels|points) and it affects since 17w45a, includes April Fools' Joke snapshots and many experimental versions.

      Steps to reproduce

      When executing the command, if you forward any multiple player to the Entity Argument (a.k.a. Target Selector) named "targets", then you can see the message "Only one player is allowed, but the provided selector allows more than one", which keyed "argument.player.toomany". A single player is required, but the argument name is plural, such as targets.

      Expected result

      It's make sense to rename targets to singular, like target or player because it affects only a player.

      Attachments

      Attachment 1


      Internal Minecraft source code which have the issue in Yarn mapping, 1.20.4.

      You can see that "targets" was used with EntityArgumentType.player(), not players(). You can also ignore the red underline.

      Attachment 2


      In-game screenshot in 17w45a which the issue starts.
       

            Unassigned Unassigned
            NoEul NoEul
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: