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

Command argument validation for single entity says player in some error messages

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      Using selectors which can include multiple entities as value for a command argument which only allows a single entity shows the following error message, despite all entity types being allowed.

      Only one player is allowed, but the provided selector allows more than one.
      

      This appears to affect only some commands, for example /execute if score @e correctly says "entity".
      Likely the wrong exception is used, argument.player.toomany instead of argument.entity.toomany, see bp.class (17w45b).

      Affected commands

      Command Command to reproduce Note
      /data get entity /data get entity @e /data merge and /data remove are not covered in this report due to MC-121807
      /execute store result entity /execute store result entity @e See MC-121864

        Attachments

          Activity

            People

            • Assignee:
              dinnerbone [Mojang] Dinnerbone (Nathan Adams)
              Reporter:
              marcono1234 [Helper] Marcono1234
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: