How to disable command blocks in Minecraft
Run /gamerule command_blocks_work false and command blocks stop running their commands. Set it to true to turn them back on.
command_blocks_work
Controls whether command blocks run their commands.
/gamerule command_blocks_work <true|false> Examples
/gamerule command_blocks_work false Disable all command blocks.
Values
| Value | What it does |
|---|---|
| trueDefault | On |
| false | Off |
Arguments
true|falseOptionaltrueturns the rule on,falseturns it off. Leave it out to show the current value.
What it does
Set it to false to disable every command block in the world without breaking them. On survival servers this stops command blocks from doing anything if someone obtains one.
Good to know
- Replaces the old
enable-command-blockline in server.properties.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.