← Back to Command Directory ← Back to Home

/spectate

Forces a player in spectator mode to view another entity.

Syntax

/spectate <target> [viewer]

Parameters

NameRequiredDescription
targetYesEntity to spectate.
viewerNoPlayer to force into spectate (defaults to executor).

Examples

/spectate @e[type=creeper,limit=1] @p

Notes

Version Differences

Java-only in current editions.

Related Commands