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

Four negative signs in a selector which only has the potential to select one entity will attempt to parse as a UUID and fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.12, Minecraft 1.12.2
    • Fix Version/s: Minecraft 17w45a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      If a selector that only has the potential to select one entity (@p, @s, @r, @e[c=1], @a[c=1]) has 4 minus signs, it attempts and fails to parse as a UUID.

      How to reproduce

      Example command:

      /testfor @p[x=-7,y=-3,z=-1,r=0,rxm=-3,c=1]
      

      Which results in:

      The entity UUID '@a[x=-7,y=-3,z=-1,r=0,rxm=-3,c=1]' is in an invalid format
      

      Whereas the expected normal error message (for just not finding the entity) would be:

      Selector '@a[x=-7,y=-3,z=-1,r=0,rxm=-3,c=1]' found nothing
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              SirBenet SirBenet
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: