Set the Default Game Mode for the World
The /defaultgamemode command changes the default game mode of a Minecraft Java Edition world. It accepts survival, creative, adventure, or spectator as valid modes.
Server operators and single-player map makers use this command when setting up a world for specific activities like building, exploring custom maps, or standard survival play. To use this command, you need Level 2 operator permissions or have cheats turned on in single-player.
/defaultgamemode <gamemode>/defaultgamemode <gamemode>| Argument | Type | What it means |
|---|---|---|
<gamemode> | game mode | Specifies the game mode to set as the default, which must be survival, creative, adventure, or spectator. |
/defaultgamemode survivalSets the world's default game mode to survival.
/defaultgamemode creativeChanges the world's default game mode to creative for building projects.
/defaultgamemode adventureSwitches the default game mode to adventure for custom map play.
/defaultgamemode spectatorUpdates the default game mode of the world to spectator.
Measured from the game files of every Java release from 1.13 to 26.3.
This command is exclusive to Minecraft Java Edition. Bedrock Edition does not have a command named /defaultgamemode.
You need Level 2 permissions, which means you must be a server operator or have cheats enabled in a single-player world.
You can only use the four standard game modes: survival, creative, adventure, or spectator.
No, Bedrock Edition does not have a command with this name.
/advancement/attribute/damage/effect/experience/gamemode/kill/ride/rotate/spawnpoint/spectate/spreadplayers/summon/swing/teleport/tp