← Back to Command Directory ← Back to Home

/gamemode

Changes a player's game mode.

Syntax

/gamemode <mode> [target]

Parameters

NameRequiredDescription
modeYessurvival, creative, adventure, spectator.
targetNoPlayer to update (defaults to executor).

Examples

/gamemode creative @p

Notes

Version Differences

Available in both Java and Bedrock editions.

Related Commands