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

gamemode selector m doesn't work with negation

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w27b, Minecraft 1.8.1, Minecraft 15w40b, Minecraft 15w45a, Minecraft 15w50a
    • Fix Version/s: Minecraft 16w02a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      I was trying to change the gamemode of people that died at least once to spectator (but only for people who aren't in spectator), so I used this command:
      /gamemode spectator @a[score_dc=!0,m=!3] (with dc being the deathcounter)
      and I noticed that apparently the m part (which is supposed to detect your gamemode) doesn't work with negatives, like:
      this works as intended: /gamemode spectator @a[m=3]
      this ignores the m=!3: /gamemode spectator @a[m=!3]

      I hope this gets you enough informormation, it's easy to work around it, but I think it would be a good thing and probably easier to fix this

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                searge [Mojang] Searge (Michael Stoyke)
                Reporter:
                MrUks MrUks
              • Votes:
                3 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: