Commands/gamemode

Sets a player's game mode.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments

 * adventure
 * and
 * Specifies the new game mode. Must be one of the following:
 * (can be abbreviated as  or   $$) for Survival mode
 * (can be abbreviated as  or   $$) for Creative mode
 * (can be abbreviated as  or   $$) for Adventure mode
 * (can be abbreviated as  or  ) for default gamemode
 * for Spectator mode
 * "hardcore" is not a valid option for the  argument, as it is technically not a game mode.


 * Specifies the target(s). If not specified, defaults to the player who executes the command.

Examples

 * To put the executing player into Creative mode:


 * To put all players into Survival mode:

History
Befehl/gamemode コマンド/gamemode Comandos/gamemode Команды консоли/gamemode Команди консолі/gamemode 命令/gamemode