Minecraft /gamemode command

Java EditionBedrock EditionSince Classic 0.30 (creative); /gamemode command in Beta 1.8

Quick answer: Switches a player between survival, creative, adventure and spectator mode. Syntax: /gamemode <mode> [target]

/gamemode changes how a player interacts with the world: survival (health and hunger), creative (unlimited blocks, flight), adventure (no block breaking without the right tools) and spectator (fly through blocks, Java only).

Syntax

EditionSyntax
Java/gamemode <mode> [target]
Bedrock/gamemode <gameMode: GameMode> [player: target]

Targets / arguments: survival, creative, adventure, spectator (Java only); optional player target. Requires: Cheats enabled / operator level 2.

Examples

/gamemode creative

Switch yourself to creative mode

/gamemode survival @a

Put every player back into survival

/gamemode spectator @s

Enter spectator mode (Java Edition only)

Tips

Related commands

/defaultgamemode/difficulty/effect