PlayersJavaBedrock

/gamemode

Switches a target player between Survival, Creative, Adventure, or Spectator. Defaults to the executor when no target is given.

What is /gamemode used for?

What /gamemode is for

Switches a player between the four game modes: Survival, Creative, Adventure, and Spectator.

When to use /gamemode

Flip to Creative to build or grab items, Adventure to lock block-breaking on an adventure map, or Spectator to fly through terrain and watch other players.

Quick /gamemode tips

/gamemode creative @a changes everyone at once, and short forms like /gamemode c work too. To set the mode new players start in, use /defaultgamemode instead.

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).

Examples

  • Switch yourself to Creative mode.

  • Put every player into Survival.

  • Put Steve into Spectator.

Common questions

How do I switch to Creative mode in Minecraft?

Type /gamemode creative (or the shorthand /gamemode c). Cheats must be enabled. To switch everyone at once, use /gamemode creative @a.

What's the difference between Adventure and Survival mode?

Survival lets you freely break and place blocks; Adventure mode blocks that unless an item is explicitly allowed to use the block, which is why map-makers use it to protect their builds.

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.