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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.11.2
    • None
    • Windows 10 Pro
      Java 1.8.0_25 (64-bit)
    • Unconfirmed

      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.

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

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

              Created:
              Updated:
              Resolved: