Commands/gamemode

Sets a player's game mode.
==Syntax==
* Java Edition
: gamemode <gamemode> [<target>]
* Bedrock Edition
: gamemode <gameMode: GameMode> [player: target]
: gamemode <gameMode: int> [player: target]
==Arguments==
: 
: and 
: Specifies the new game mode.
:
: Specifies the target(s). If not specified, defaults to the player who executes the command.
: 
==Result==
== Output ==
==Examples==
* To put the executing player into Creative mode:
*: /gamemode creative
*: /gamemode c
*: /gamemode 1
* To put all players into Survival mode:
*: gamemode survival @a
==See also==
* – sets the initial game mode for players joining the world.
== History ==
de:Befehl/gamemode
ja:コマンド/gamemode
pt:Comandos/gamemode
ru:Команды консоли/gamemode
uk:Команди консолі/gamemode
zh:命令/gamemode