Commands/gamemode

Sets a player's game mode.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments

 * lit. 'adventure' or 'creative' or 'spectator' or 'survival'
 * 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
 * or  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