
/gamemode
Changes a player's game mode (survival, creative, adventure, spectator). Its basic form is /gamemode <gamemode>; it has 2 syntax forms and 2 arguments. Permission: Cheats / op 2.
/gamemode syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/gamemode <gamemode>/gamemode <gamemode> <target>/gamemode examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/gamemode creative- Switches you to Creative.
/gamemode survival @a- Puts every player in Survival.
/gamemode spectator @s- Switches you to Spectator.
/gamemode arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<gamemode> | Game mode (survival, creative, adventure, spectator) | — |
<target> | Target selector or player name (@s, @p, @a, @e, @r) | players only · one or more |
Related commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Changes a player's game mode (survival, creative, adventure, spectator). It has 2 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/gamemode FAQ (Java 26.3)
What does /gamemode do in Minecraft?
Changes a player's game mode (survival, creative, adventure, spectator).
What is the syntax of /gamemode?
The basic form is /gamemode <gamemode>. All forms are listed above.
What is an example of /gamemode?
/gamemode creative — Switches you to Creative.
Do you need cheats for /gamemode?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).