All commands
🎮
Beginner

/gamemode

Flip between Survival, Creative, Adventure, and Spectator.

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.

Keep going

Related commands