Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-158042

/testfor command cannot target spectators

XMLWordPrintable

    • Confirmed
    • Windows
    • 811324

      Target selectors can use the "m" selector argument to limit selection by game mode, but there is no value to select only players in Spectator mode.

      To Reproduce: Run the following command:

       /testfor @a[m=spectator] 

      Expected result: List of spectators were shown
      Observed: The error "Game mode 'spectator' is invalid' was shown instead

            FrostIce482 FrostIce482
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: