Default Gamemode Command Generator — /defaultgamemode for New Players (Java Edition)
Most of these need operator permission — run them from an op's chat, a command block, or the server console.
How to Use the Default Gamemode Command Generator
- Choose a default gamemode: survival, creative, adventure, or spectator.
- Copy the generated
/defaultgamemodecommand into a command block, the console, or an operator’s chat.
Command Syntax Reference
/defaultgamemode <survival|creative|adventure|spectator>
/defaultgamemode changes what gamemode brand-new players are assigned when they first join the world, and what gamemode existing players without a forced individual override return to after certain events. It never changes any currently-connected player’s gamemode immediately – for that, use /gamemode instead. This is effectively a server-side default setting, the same one exposed as gamemode in server.properties for dedicated servers, just changeable live via command instead of requiring a restart.
Frequently Asked Questions
Does /defaultgamemode change the gamemode of players already on the server?
No – it only affects players joining for the very first time afterward (or, in some cases, players respawning without a forced gamemode). Anyone currently connected keeps whatever gamemode they’re already in; use /gamemode <mode> @a if you want to change everyone right now.
What’s the difference between /defaultgamemode and /gamemode?
/gamemode immediately changes a specific player’s (or selector-matched players’) current gamemode. /defaultgamemode instead changes the world/server-wide setting that determines what gamemode is assigned to players who haven’t joined yet – it’s a future default, not an immediate change.
Is this the same setting as the gamemode line in server.properties?
Yes – /defaultgamemode updates the same underlying default that server.properties‘ gamemode field configures at startup. Using the command lets you change it while the server is running, without needing to edit the file and restart.
Will a returning player who already joined before get the new default gamemode?
Generally no – a player who has already joined the world once retains their last-used gamemode across subsequent logins, since Minecraft remembers per-player gamemode state. /defaultgamemode mainly affects players who have genuinely never joined that world before.
Related Tools
- Gamemode Command Generator – immediately change a current player’s gamemode instead of the future default.
- Difficulty Command Generator – set world difficulty alongside a default gamemode for new players.
- Spawnpoint Command Generator – control where new players respawn alongside their default gamemode.