Players
/gamemode
Switches a target player between Survival, Creative, Adventure, or Spectator. Defaults to the executor when no target is given.
Syntax
Parameters
- mode
- literal
- One of: survival, creative, adventure, spectator.
- targetsoptional
- entity selector
- Players to switch. Defaults to executor.
Command builder
Configure the options below to generate a ready-to-paste /gamemode command.
Omitted when targeting yourself (@s).
/gamemode creativeExamples
Switch yourself to Creative mode.
Put every player into Survival.
Put Steve into Spectator.
Permission level
/gamemode requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.