/gamemode
Flip between Survival, Creative, Adventure, and Spectator.
Overview
What is the /gamemode command?
The /gamemode command switches a player between Survival, Creative, Adventure and Spectator. Creative gives flight and unlimited blocks, Survival brings back health and hunger, Adventure stops block breaking (great for maps), and Spectator lets you fly through walls invisibly.
You can change your own mode or anyone else's, which makes it essential for building, testing and moderating a server.
When to use it: Use /gamemode to flip into Creative for building, back to Survival to play, or into Spectator to watch without interfering.
At a glance
Syntax
/gamemode <mode> [target]See it
What it does
Anatomy
Every part, explained
- 1
CommandRequired/gamemodeChanges how a player interacts with the world.
- 2
ModeRequired<mode>survival, creative, adventure, or spectator.
- 3
TargetOptional[target]Who changes. Defaults to you.
Your turn
Try it yourself
Copy & paste
Examples
/gamemode creativeFly and build with infinite blocks.
/gamemode survival @sBack to normal, hunger and all.
/gamemode spectatorFly through walls, untouchable.
Avoid these
Common mistakes
/gamemode 1/gamemode creativeModern Java dropped numeric ids - use the name.
/gamemode creator/gamemode creativeIt's 'creative', a common typo to watch for.
Good to know
Frequently asked questions
- How do you change game mode with a command?
- Type /gamemode <mode>, for example /gamemode creative or /gamemode survival. Add a player name to change someone else's mode.
- What are the numbers for game modes?
- 0 = Survival, 1 = Creative, 2 = Adventure, 3 = Spectator. Java now prefers the names, but the numbers still work in Bedrock.
- What is the difference between Adventure and Survival mode?
- Adventure mode plays like Survival but you can't break or place most blocks unless an item is allowed to โ it's used to protect custom maps.
Keep going