Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Change Your Game Mode With Command Blocks in Minecraft

Enter a /gamemode command in a command block and activate it. Learn the Bedrock setup, how to target players, and what to check in Java Edition.
WorldMinecraft Length2 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Put a command such as /gamemode creative @p in a command block, then activate it. The command sets the selected player’s game mode; in Bedrock Edition, you can configure the block to run from redstone power or automatically. The setup steps below are for Bedrock, while Java’s command-block availability depends on its version and server settings.

Choose the command and who it affects

The command format is /gamemode <gameMode> [player]. Replace <gameMode> with the mode and use the optional player argument to choose a target. Microsoft’s Bedrock command reference documents this form.

  • /gamemode creative @p switches the nearest player to Creative.
  • /gamemode survival @p switches the nearest player to Survival.
  • Use a player name to target one specific player. Selectors can target groups; for example, @a[tag=sometag] selects all players with that tag.

The documented mode names include survival (also s or 0), creative (also c or 1), and adventure (also a or 2). The command reference also lists default (or d) for the world’s default mode. See the official popular commands guide for documented command forms and examples.

Set up a command block in Bedrock Edition

  1. Enable cheats. Open the world’s settings and enable Activate Cheats. In Bedrock, enabling cheats permanently disables achievements for that world, even if you turn cheats off later; Microsoft explains this in its commands guide.
  2. Get a command block. Open chat and run /give @p command_block.
  3. Place and configure it. Place the block, open its interface, and enter a command such as /gamemode creative @p. The official Bedrock command-block tutorial covers obtaining and configuring command blocks.
  4. Choose when it runs. For a button-triggered switch, use an Impulse block, select Needs Redstone, and connect a button. An Impulse block runs when it receives redstone power.
  5. Activate it. Press the button or provide the redstone power required by the block’s settings.

Understand the activation settings

Bedrock command blocks have three types, each suited to a different job:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Impulse: runs when it receives redstone power; useful for a one-time mode change.
  • Repeating: runs once each game tick while powered.
  • Chain: runs when a command block pointing into it is activated.

Needs Redstone means the block requires power; Always Active means it does not. Avoid leaving a gamemode command in an always-active repeating block unless you intend it to keep executing: it will run every game tick while active.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Java Edition and permission differences

The setup menu instructions above are for Bedrock and should not be assumed to match Java. Minecraft’s commands guide says Java single-player worlds can enable Allow Commands during world creation or later through World Options. In multiplayer, you need sufficient permission to run commands; the owner of a server or Realm generally has the necessary permissions.

Java’s command-block enablement also varies by release. The Java Edition 1.21.9 release notes say the enable-command-block server property was removed in favor of the commandBlocksEnabled game rule. Check the instructions for your specific Java version and server configuration rather than following Bedrock menu labels.

Rank #4
Sale
LEGO Minecraft the Pickaxe Mine Kids Toy - Building Set for Boys and Girls - Minecraft Toy for Gaming Fans 8+ - Includes Alex, Miner, and Stray Spider Jockey Minifigure - Birthday Gift Idea - 21277
  • BUILD THE GAME – LEGO Minecraft the Pickaxe Mine immerses kids ages 8 and up in the hit game as they build, explore, and explore their favorite scenes
  • COLLECTIBLE MINECRAFT MINIFIGURES – The set includes Alex, Miner and stray spider jockey minifigures, plus a ridable spider and a polar bear figure
  • PRETEND PLAY – Kids extract ore from the mine, load it into a minecart and transport it along the track to be stored in a chest, all while fending off a hostile spider jockey
  • EXPLOSIVE ACTION – Once the minecart is filled with TNT, a special feature lets kids launch it into the rock wall and blast through the other side
  • GIFT IDEA FOR BOYS & GIRLS – This LEGO Minecraft creative-building adventure toy makes a great gift idea for Minecraft lovers

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Turn On Vibrant Visuals in MinecraftMinecraftBlog3min
  2. Best Multiplayer Games for Low-End PCsBlog4min
  3. Minecraft: How To Use And Install OptiFineBlog5min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.