How to switch to Spectator mode in Minecraft

This Minecraft tutorial explains how to switch to Spectator mode with screenshots and step-by-step instructions.

Spectator is a game mode that allows players to fly around and observe the Minecraft world. Players in this mode can not interact with anything in the game, but can fly through solid objects.

TIP: Spectator is a great mode to use if you have mined underground and have gotten lost or run out of resources. Just switch to Spectator mode and fly up! You can easily find blue skies and the ground. Then switch back to Creative or Survival mode again.

Let's explore how to switch the game mode to Spectator using the /gamemode command.

subscribe button Subscribe

Supported Platforms

The /gamemode command to switch to Spectator mode is available in the following versions of Minecraft:

PlatformSupported (Version*)
Java Edition (PC/Mac) Java Edition (PC/Mac)Yes (1.8)
Pocket Edition (PE) Pocket Edition (PE)Yes (1.19.50)
Xbox 360 Xbox 360No
Xbox One Xbox OneYes (1.19.50)
PS3 PS3No
PS4 PS4Yes (1.19.50)
Wii U Wii UNo
Nintendo Switch Nintendo SwitchYes (1.19.50)
Windows 10 Edition Windows 10 EditionYes (1.19.50)
Education Edition Education EditionNo

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Command to Change to Spectator Mode

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.
  • For Pocket Edition (PE), tap on the chat button help command at the top of the screen.
  • For Xbox One, press the D-Pad (right) xbox one on the controller.
  • For PS4, press the D-Pad (right) ps4 on the controller.
  • For Nintendo Switch, press the right arrow button nintendo switch on the controller.
  • For Windows 10 Edition, press the T key to open the chat window.

2. Type the Command

In this example, we are going to change the gamemode to Spectator using the following command:

/gamemode spectator

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

gamemode spectator

Once the cheat has been entered, the game mode will be updated to Spectator:

completed gamemode spectator

You will see the message "Set own game mode to Spectator Mode" appear in the lower left corner of the game window. Also, your health meter and hunger meter will no longer appear above the hotbar and you will be flying.

You can use the SPACE key to fly up or the LSHIFT key to fly down and see the pools of lava underground. It is also a great way to find the Ancient City.

completed gamemode spectator

Now you are in Spectator game mode in Minecraft! See what new areas you can discover.

Find Secret Underground Areas

Spectator mode is a great way to find secret areas that are difficult to find underground. Just drink a Potion of Night Vision, switch to Spectator mode, and use the LSHIFT key to fly down. You will quickly find abandoned mineshafts, Ancient Cities, dungeons, and other secret areas. Then easily switch back to Creative or Survival mode and explore!

TIP: Make sure you drink a Potion of Night Vision before switching to Spectator mode so that you can see all of the secret areas underground! Otherwise, everything will look black except the lava pools.

Abandoned Mineshafts

Abandoned mineshafts are made up of a series of mining tunnels with rails, oak planks, cobwebs, and stone. These mineshafts will usually connect to other cave systems. This is what an abandoned mineshaft looks like in Spectator mode with Night Vision:

mineshaft in gamemode spectator

Ancient City

The Ancient City is a long-abandoned structure found deep underground in the Deep Dark biome. It is made of new blocks such as sculk, sculk catalysts, and sculk shriekers. This is what the Ancient City looks like in Spectator mode with Night Vision:

ancient city in gamemode spectator

Dungeons

Dungeons appear as a small room with a monster spawner in the center and 1 or 2 chests (sometimes a double chest) filled with valuable items. The walls and floor of the dungeon are made of cobblestone and mossy cobblestone. This is what a dungeon looks like in Spectator mode with Night Vision:

dungeon in gamemode spectator

Other Game Mode Commands

You can use other gamemode commands in Minecraft such as: