MiniBench

MiniBench / Learn / Commands

Command Bedrock Edition ~2 min read

The /gamemode command

Switch between survival, creative, adventure, and spectator on the fly.

What it does

/gamemode changes how you (or another player) play: mine and craft in survival, build freely in creative, explore without breaking blocks in adventure, or fly through walls in spectator. It's the command you'll toggle most while testing a pack.

Syntax

gamemode <mode> [player]
mode
survival (s / 0), creative (c / 1), adventure (a / 2), or spectator.
player
Who to change. Defaults to the command runner.

Examples

gamemode creative @s

Put yourself in creative to build.

gamemode survival @a

Drop everyone into survival — great to start a challenge.

gamemode c

Shorthand: c = creative, s = survival, a = adventure.

See it in action

Before and after running /gamemode — in MiniBench's 3D preview and in Minecraft.

Command run

gamemode survival
In Minecraft
Survival hearts and hunger appearing after /gamemode in Minecraft (before)

Before

Survival hearts and hunger appearing after /gamemode in Minecraft (after)

After

Not affiliated with Mojang or Microsoft. Minecraft is a trademark of Mojang Synergies AB.

Watch out for

Write it in MiniBench with autocomplete and live validation, then run it in Minecraft.