Commands/spectate

From Minecraft Wiki
Jump to: navigation, search
spectate
Restrictions

Unknown

First introduced

Java Edition 1.15 (Java Edition 19w41a)

Information icon.svg
This feature is exclusive to Java Edition.

Causes a player in Spectator mode to spectate another entity.

Syntax
spectate [target] [player]
Arguments
target
The target to be spectated. Must be a single entity or player. If blank, makes the target stop spectating.
player
Must be a single player who is in spectator mode.
Result
Fails if the arguments are not specified correctly, if player fails to resolve to one or more online players, or the target selectors allow multiple entities.
On success, causes a player to spectate another entity or stop spectating.

History[edit]

Java Edition
1.1519w41aAdded /spectate.