/spectate

From Minecraft Wiki
Jump to navigation Jump to search
"Spectate" redirects here. For the gamemode, see Spectator.
This feature is exclusive to Java Edition.
 
/spectate
Permission level
required
2
Restrictions None

Causes a player in Spectator mode to spectate another entity or stop spectating.

If the spectator is away from the target, the command will result in a camera follow mode, instead of the default first-person view.

Syntax

[edit | edit source]

spectate <target> [<player>]

Causes a player to spectate another entity.

spectate

Stops spectating.

Arguments

[edit | edit source]

<target>: entity

Specifies the target to be spectated.
Must be a player name, a target selector or a UUID. And the target selector must be in single type.

<player>: entity

Specifies the spectating player. If unspecified, defaults to the executor.
Must be a player name, a target selector or a UUID. And the target selector must be of single-player type.

Result

[edit | edit source]

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
<target> fails to resolve to an entity (named player must be online). Failed
<player> fails to resolve to a online player.
<player> is not specified when the command's executor is not a player.
<player> and <target> are the same.
<player> isn't in spectator mode.
OtherwiseSuccessful

Output

[edit | edit source]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn fail000
On success111

History

[edit | edit source]
Java Edition
1.1519w41aAdded /spectate.
1.19.423w03aNow /spectate command works between dimensions.[1]

References

[edit | edit source]
  1. MC-224960 – resolved as "Fixed".
[edit | edit source]