All commands
๐ŸŽฎ
BeginnerJava โœ“Bedrock โœ“

/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

Syntax
/gamemode <mode> [target]
commandtargetcoordsvaluerequiredoptional

See it

What it does

Creative Mode
The play mode switches

Anatomy

Every part, explained

  1. 1
    /gamemodeCommandRequired

    Changes how a player interacts with the world.

  2. 2
    <mode>ModeRequired

    survival, creative, adventure, or spectator.

  3. 3
    [target]TargetOptional

    Who changes. Defaults to you.

Your turn

Try it yourself

Playground
2 tokens ยท press Enter to run

Copy & paste

Examples

/gamemode creative

Fly and build with infinite blocks.

/gamemode survival @s

Back to normal, hunger and all.

/gamemode spectator

Fly through walls, untouchable.

Avoid these

Common mistakes

โœ•/gamemode 1
โœ“/gamemode creative

Modern Java dropped numeric ids - use the name.

โœ•/gamemode creator
โœ“/gamemode creative

It'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

Related commands