Players in spectator mode are detected when using the /testfor and /execute if entity commands
Steps to reproduce:
1-type the command /testfor @a[x=, y=+1, z=~, dy=2] or /execute if entity @a[x=, y=+1, z=~, dy=2] in a command block.
2- place a redstone comparator next to the command block.
3-stand on top of the command block
Observed results:
the command block will detect all players in any game mode.
Expected results:
players in spectator mode were not supposed to be detected by the command block, as players in spectator mode were not supposed to interact in the game, just observe.
Thank you for your report!
However, this issue is Working as Intended.
The report you have submitted is working as intended: MC-79106 & MC-46499.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – Feature Requests and Suggestions
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki