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

gamemode selector m doesn't work with negation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w02a
    • Minecraft 14w27b, Minecraft 1.8.1, Minecraft 15w40b, Minecraft 15w45a, Minecraft 15w50a
    • None
    • Confirmed

      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

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

              Created:
              Updated:
              Resolved:
              CHK: