Minecraft:Commands/gamemode
From SAS Gaming Wiki
More actions
Template:Distinguish Template:Infobox command
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
Template:El: Template:Argument
Template:El: Template:Argument and Template:Argument
- Specifies the new game mode.
- Template:Arg desc
- Specifies the target(s). If not specified, defaults to the player who executes the command.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
Examples
- To put the executing player into Creative mode:
/gamemode creative/gamemode cTemplate:Only/gamemode 1Template:Only
- To put all players into Survival mode:
/gamemode survival @a
History
Java Edition
Bedrock Edition
See also
- Template:CmdTemplate:Only – sets the initial game mode for players joining the world.
External links
de:Befehl/gamemode es:Comandos/gamemode ja:コマンド/gamemode ko:명령어/gamemode pt:Comandos/gamemode ru:Команды консоли/gamemode uk:Команди консолі/gamemode zh:命令/gamemode