Command Blocker: Toggle Command Blocks Live in Minecraft

Command Blocker adds the commandBlocksEnabled gamerule so you can toggle command blocks while playing. Download Command Blocker for Minecraft today!

Command Blocker

Command blocks are one of the most powerful tools in Minecraft, and also one of the most dangerous. A single repeating command block running /tp @a 0 90 0 can ruin a session in seconds, and once it is placed, stopping it is not always straightforward. Command Blocker solves that problem with one elegant addition: a brand-new gamerule called commandBlocksEnabled that lets you switch command blocks on or off while the game is running.

What Command Blocker Actually Does

The mod is deliberately small. It does not add machines, mobs, or decorative blocks. Instead, it introduces a single gamerule that controls whether command blocks function at all. Type the gamerule command in chat, flip the value, and every command block in the world immediately stops or resumes executing. No restart, no world reload, no editing files by hand.

That simplicity is the point. Command Blocker is a safety switch you can reach for the moment something goes wrong.

Why This Gamerule Is Needed

Singleplayer Has No Other Option

In singleplayer, there is simply no built-in way to disable command blocks once a world is running. If you placed a repeating command block that teleports everyone into the sky, your only options are breaking the block manually or abandoning the world. Command Blocker gives you a clean, instant off switch instead.

Server Properties Only Apply at Startup

Multiplayer servers have the enable-command-block setting in server.properties, so you might assume this mod is pointless there. It is not. Changes to server.properties are only read when the server starts, which means you cannot toggle that setting on a live server. Command Blocker fills exactly that gap by making the change possible in real time.

A Word of Caution for Server Owners

Because the gamerule can be changed while the server is running, this is also a security consideration. Anyone with operator permissions can flip command blocks back on. Only install Command Blocker if you trust every operator and admin on your server.

Supported Versions and Loaders

Command Blocker is a Fabric mod, which keeps it lightweight and compatible with most modern setups. It targets recent Minecraft releases, and the project page lists the exact Minecraft versions supported alongside each build. If you run a Fabric server or client, installation is quick and the mod has no dependencies beyond the Fabric loader itself.

Players who prefer a smoother setup route often grab it through the foxygame.net launcher, where Command Blocker sits in a curated add-on catalog and installs with a single click, complete with automatic updates whenever a new Minecraft version drops.

How to Install Command Blocker

Getting the mod running takes only a few minutes. Follow these steps:

  • Install the Fabric loader for your Minecraft version.
  • Download Command Blocker for Minecraft from the official project page.
  • Place the downloaded .jar file into your mods folder.
  • Launch the game using the Fabric profile.
  • Join a world and type the gamerule command to test the toggle.

For servers, install the mod on both the server and any clients that need matching behavior, then restart once so Fabric loads it. After that first restart, you never need to touch server.properties again.

Using the commandBlocksEnabled Gamerule

Once installed, the gamerule behaves like any other. You can query its current state, set it to false to freeze all command blocks, and set it back to true when you are ready to work on contraptions again. Because it is a standard gamerule, it also appears in gamerule lists and can be managed through command blocks themselves, assuming they are currently enabled.

This makes Command Blocker useful in several everyday situations:

  • Stopping a runaway repeating command block before it causes more damage.
  • Locking down command block access during a public event or stream.
  • Testing map mechanics without permanently altering a survival world.
  • Giving server staff a fast response tool for griefing incidents.

Final Thoughts

Command Blocker does one job and does it well. By adding the commandBlocksEnabled gamerule, it removes a long-standing limitation in both singleplayer and multiplayer, letting you control command blocks live instead of restarting or editing files. Whether you run a small survival world or a busy Fabric server, it is a small mod with an outsized impact on safety and control.