command_blocks_work
booleanJava 26.2 onlyControls whether command blocks execute their stored commands. When false, command blocks are silenced — they receive redstone signals but do not run any commands.
Enable command_blocks_work
Command blocks execute their commands normally when powered.
Java
/gamerule command_blocks_work trueDisable command_blocks_work
Command blocks are inactive — they receive power but do not run commands.
Java
/gamerule command_blocks_work falseDefault: true. Restore with /gamerule command_blocks_work true
What command_blocks_work does
Controls whether command blocks execute their stored commands. When false, command blocks are silenced — they receive redstone signals but do not run any commands.
command_blocks_work is a Java Edition-only gamerule and is not available in Bedrock.