/spectate
op 2Players/spectate attaches a spectator to another entity’s view. The player has to already be in spectator mode; running it with no target detaches them again.
Commandready
15
Press C to copy
optional
All entities
@e
Who or what the command applies to
optional
Nearest player
@p
Who or what the command applies to
Examples
- Watch the nearest zombie
/spectate @n[type=zombie]
Common questions about /spectate
›Why does /spectate do nothing?
The player must be in spectator mode. Run /gamemode spectator first.
›How do I stop spectating and get my own view back?
Run /spectate with no arguments. That detaches the camera and returns the player to their own body, still in spectator mode.