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

'@r' target selector in scoreboard commands ignores "not equal to" arguments about entity type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.11.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10 Pro
      Java 1.8.0_25 (64-bit)
    • Confirmation Status:
      Unconfirmed

      Description

      I was trying to use scoreboard commands to give a randomly selected entity that isn't a chicken a certain score in an objective when I found that the command was only selecting players. This is the command I was using:

      /scoreboard players set @r[type=!chicken] Class 1

      As shown in the first screenshot, despite there being many targets that aren't players, I still could never get a non-player entity to be selected.
      This is strange because "equal to" arguments still work, as shown in the second screenshot.

      Also, other commands don't seem to have this issue. /testfor works fine with this type of selector, as shown in the third screenshot.

        Attachments

        1. bug1.PNG
          bug1.PNG
          331 kB
        2. bug2.PNG
          bug2.PNG
          310 kB
        3. bug3.PNG
          bug3.PNG
          300 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              connor135246 C
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: