/defaultgamemode

Cheats / op 2Java 26.3

Sets the game mode new players join in. Its basic form is /defaultgamemode <gamemode>; it has 1 syntax form and 1 argument. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
1
Arguments
1

/defaultgamemode syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/defaultgamemode <gamemode>

/defaultgamemode examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/defaultgamemode survival
New players who join the server start in Survival.

/defaultgamemode arguments

What each argument expects, with the limits the game enforces.

/defaultgamemode arguments
ArgumentExpectsLimits
<gamemode>Game mode (survival, creative, adventure, spectator)—

Other commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Sets the game mode new players join in. It has 1 syntax form and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/defaultgamemode FAQ (Java 26.3)

What does /defaultgamemode do in Minecraft?

Sets the game mode new players join in.

What is the syntax of /defaultgamemode?

The basic form is /defaultgamemode <gamemode>. All forms are listed above.

What is an example of /defaultgamemode?

/defaultgamemode survival — New players who join the server start in Survival.

Do you need cheats for /defaultgamemode?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).