Command blocks let you run commands automatically with redstone or a click. Servers have them switched off by default, so you need to enable them first.
Newer versions (1.21.11 and up)
Newer versions use a gamerule instead of a setting in the properties file.
- Open your server in the panel and go to the Console tab.
- Run the command for your edition:
- Java:
gamerule command_blocks_work true - Bedrock:
gamerule commandblocksenabled true
- Java:
- To turn them off again, run the same command with
false.
You can also run it in-game as an operator by adding a / in front. If you use Multiverse or a similar world plugin, gamerules may need to be set per world.
Older versions (1.21.4 and below)
- Stop the server and open the Files tab.
- Open
server.properties. - Find
enable-command-blockand set it totrue. - Save the file and start the server again.
⚠️
Command blocks run commands as the server. Only enable them if you trust everyone with operator status, and anyone who can build in loaded areas. For most needs, a permissions-aware plugin is safer.
To make yourself an operator first, see Make Yourself an Operator.
Last updated on