/gamemode
op 2Players/gamemode changes how a player interacts with the world. Adventure mode is the one worth knowing: players can move and use things but cannot break blocks unless the tool explicitly allows it.
Commandready
21
Press C to copy
optional
Nearest player
@p
Who or what the command applies to
Examples
- Creative for yourself
/gamemode creative - Adventure for everyone
/gamemode adventure @a
Common questions about /gamemode
›What does adventure mode stop?
Breaking and placing blocks. Items can still be used, so it is the standard mode for adventure maps where the terrain must stay intact.
›Can I set a default game mode for everyone joining?
Yes — /defaultgamemode sets what new players start in, without changing anyone already on the server.