Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/spectate

Command

/spectate

Makes a player in Spectator mode view the world through another entity, or stops doing so.

Syntax

/spectate [<target> [<player>]]

Arguments

ArgumentKind of valueWhat to type
<target>Target selectorThe single entity to view the world through. Leave it out to stop spectating. One entity only.
<player>Target selectorThe single player who becomes the spectator. Defaults to the player running the command. One player only.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, multiplayer servers, command blocks and functions. Needs permission level 2 (gamemasters): operators, players in a world with cheats enabled, command blocks and functions.
ResultReports "Now spectating" with the entity's name, or "No longer spectating an entity" when stopping. The number /execute store saves is 1.
No argumentsWithout a target the player running the command stops spectating and returns to their own view.
Spectator mode onlyThe spectating player must be in Spectator mode, otherwise the command fails with "... is not in spectator mode".
Not yourselfA player cannot spectate themselves: "Cannot spectate yourself".
Entities that cannot be spectatedSome entity types cannot be viewed and fail with "... cannot be spectated".
Who spectatesWithout the player argument, the player running the command is the spectator, so command blocks and the console must name a player.

Examples

/spectate @e[type=minecraft:creeper,limit=1,sort=nearest]

Lets you watch through the nearest Creeper while you are in Spectator mode.

/spectate Alex

Lets you watch through the player Alex.

/spectate Alex Steve

Makes Steve, who must be in Spectator mode, watch through Alex.

/spectate

Stops spectating and returns you to your own view.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)