Switch To Spectator Mode
Enter spectator mode to fly through blocks and watch others
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Changes your game mode to spectator, allowing you to fly through any block and observe without interacting. You cannot place or break blocks or fight mobs, but you can noclip freely and see everything.
/gamemode spectator19 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- Your game mode switches to spectator.
- Fly freely through all blocks.
Related commands
Set Gamemode to Creative
Switch yourself into Creative mode
Set Difficulty to Peaceful
Switch to Peaceful mode so hostile mobs don't spawn
Add Experience Levels
Give yourself or a player XP levels
Start a Thunder Storm
Trigger a thunderstorm with lightning
Set Time to Night
Make it nighttime immediately
Display World Seed
See the world seed for reproducibility or map info