/gamemode Command in Minecraft Bedrock Edition

Set a Player's Game Mode in Minecraft

Bedrock EditionPlayers & EntitiesPermission: Game DirectorsCheats: YesJava version →

The /gamemode command changes a player's game mode in Minecraft Bedrock Edition. You can set the mode using either a standard game mode name or a number.

Players and server administrators use this command to switch between modes for building, testing maps, or managing other players on a world. To run this command, you must have cheats enabled and a Game Directors permission level.

Syntax (2 forms)

  1. /gamemode <gameMode: GameMode> [player: target]

    Set game mode with enum

  2. /gamemode <gameMode: int> [player: target]

    Set game mode with integer

Arguments

ArgumentTypeWhat it means
gameModeGameModeGame mode enum
gameModeintGame mode integer
playertargetA player name `string` or `target selector` to identify the player.

Examples

Tips

Common mistakes

Bedrock vs Java

In Minecraft Java Edition, the equivalent command is /gamemode <gamemode> [<target>], which follows the same argument order as Bedrock Edition.

See /gamemode in Java Edition →

FAQ

Why is the /gamemode command not working in my world?

The /gamemode command requires cheats to be enabled in your world settings and your account must have the Game Directors permission level.

How do I change another player's game mode?

Add the player's name or a target selector at the end of the command, right after you enter the game mode.

Can I use numbers with the /gamemode command in Bedrock Edition?

Yes, Bedrock Edition allows you to use an integer value instead of the game mode name to set a player's game mode.

Related commands

/aimassist/camera/camerashake/clearspawnpoint/controlscheme/damage/effect/event/hud/inputpermission/kill/ride/spawnpoint/spreadplayers/summon/teleport

More on 9Minecraft