Skip to main content

/gamemode

Sets a player's game mode to survival, creative, adventure, or spectator.

Category
Player
Permission Level
Game Master
Version Added
1.0

Syntax

/gamemode <gamemode> [<target>]

Parameters

NameTypeRequiredDescription
gamemodegamemodeRequiredThe game mode to set: survival, creative, adventure, or spectator.
targetentityOptionalThe player(s) to change. Defaults to self.

Examples

/gamemode creative

Sets your own game mode to creative.

/gamemode survival @a

Sets all players to survival mode.

/gamemode spectator @p

Puts the nearest player into spectator mode.

Common Mistakes

Notes

Switching to creative while falling negates fall damage. Switching from creative to survival while flying will cause the player to fall.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting