In this Minecraft tutorial, you’ll learn how to use the /gamemode command.
You can change the game mode of any or all players by using the /gamemode command in Minecraft.
The /gamemode command
In Minecraft, the syntax for changing the game mode is : /gamemode <mode> [player]
The <mode>
is the game mode you wish to switch to. It can be one of the following :
survival
(can be abbreviated to s or 0 in the Bedrock edition) for Survival modecreative
(can be abbreviated to c or 1 in the Bedrock edition) for Creative modeadventure
(can be abbreviated to a or 2 in the Bedrock edition) for Adventure modespectator
for Spectator mode
Note that “hardcore” is not a valid option, as it is not technically a game mode.
The [player]
is optional. This is the name of the player (or a target selector) you wish to change game mode to. If you don’t specify a player, the game mode will be changed for the player who executes the command.
How do I enter the /gamemode command ?
How to use the /gamemode command in Minecraft.
Total Time: 2 minutes
-
Open the chat window
The easiest way to execute a command in Minecraft is in the chat window. The game command to open the chat window depends on the version of Minecraft :
For Java Edition (PC/Mac), press the T key to open the chat window.
For Pocket Edition (PE), press the help command on the chat button at the top of the screen.
For Xbox One, press the Xbox One D-Pad (right) on the controller.
For PS4, press the D-Pad (right) ps4 on the controller.
For Nintendo Switch, press the D-Pad (right) nintendo switch on the controller.
For Windows 10 Edition, press the T key to open the chat window.
For Education Edition, press the T key to open the chat window. -
To switch to Creative mode for the player named keither in Minecraft
/gamemode creative keither
-
To switch all players to survival mode, enter :
gamemode survival @a
@a -
To switch the player executing the command to survival mode, enter :
/gamemode survival
Congratulations, you’ve just learned how to use the /gamemode command in Minecraft !