Skip to content
[/craft]

Switch To Spectator Mode

Enter spectator mode to fly through blocks and watch others

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Changes 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 spectator
19 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. Your game mode switches to spectator.
  4. Fly freely through all blocks.

Related commands

Switch yourself into Creative mode

/gamemode creative

Switch to Peaceful mode so hostile mobs don't spawn

/difficulty peaceful

Give yourself or a player XP levels

/xp add @s 10L

Trigger a thunderstorm with lightning

/weather thunder 600

Make it nighttime immediately

/time set night

See the world seed for reproducibility or map info

/seed