Join our Discord and be part of our community!
Enable Command Blocks
In this guide, we will step-by-step show you how to enable Command Blocks in Minecraft. Command blocks are a type of block in Minecraft that allows you to use console commands in-game. They are also a big part of redstone usage, as they allow you to use repeat commands and signals, as well as being able to run a very long list of commands. Command blocks will hold the information typed in them until deleted, which is why they are an integral part of big redstone projects.
Enable via Gamerule (1.21.11 and newer)
On modern Minecraft versions, enable command blocks by running the /gamerule command in-game or from the server console. No config edits or restarts required.
Run In-Game
- Join your server with an account that has OP / admin permissions.
- Open the chat window and run the appropriate command for your edition:
Java:
/gamerule command_blocks_work true
Bedrock:
/gamerule commandblocksenabled true- To disable command blocks again, run the same command with
falseinstead oftrue.
Run via Server Console
- Login to the panel. See Access the Panel for instructions.
- Go to the Servers tab and open your server.
- Open the Console tab and run:
gamerule command_blocks_work trueEdit server.properties (Legacy, Up to 1.21.4)
This older method is required for older Minecraft versions or setups where the gamerule is not available.
Access Panel
- Login to the panel. See Access the Panel for instructions.
- Go to the 1 Servers tab.
- 2 Then, go into your server.
Navigate to Files
- Go into the 1 Files tab.
- Locate and open the 2
server.propertiesfile.
Edit Config File
- 1 Now hit
ctrl+f, typeenableand press ENTER. - Scroll down to the 2
enable-command-block=trueline and edit it accordingly to betrueorfalse. true: Command blocks are enabled.false: Command blocks are disabled.- Finally, click 3 Save Content to save your changes to the file.
Restart the Server
- Restart your server to make sure all changes can apply correctly.
If you require further assistance, you can open a support ticket here.
Feedback and suggestions can be submitted here or further discussed on our Discord server.