Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/defaultgamemode

Command

/defaultgamemode

Sets the game mode that players get when they join the world for the first time.

Syntax

/defaultgamemode <gamemode>

Arguments

ArgumentKind of valueWhat to type
<gamemode>Game modeThe new default: survival, creative, adventure, or spectator.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it.
ResultReports "The default game mode is now" followed by the mode. The number /execute store saves is the number of online players whose game mode was changed, which is 0 unless the server forces the default game mode.
Existing playersPlayers who are already in the world keep their current game mode. Use /gamemode to change them.
Forced game modeIf the server is set to force the default game mode, all online players are switched to the new mode right away.

Examples

/defaultgamemode creative

New players start in Creative mode.

/defaultgamemode adventure

New players start in Adventure mode.

/defaultgamemode survival

New players start in Survival mode.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)