How to enable command blocks

Command blocks let you build redstone contraptions and adventure maps that run commands. They are turned off by default, and the switch lives in your server's config file rather than the Settings tab.

The command blocks switch

Turn them on

  1. Open the Files tab and edit server.properties.
  2. Find enable-command-block=false and change it to enable-command-block=true.
  3. Save the file, then Restart the server.

The Settings tab does not carry this option. Command blocks can also be switched on when you first create a server, but after that server.properties is the place to change it.

Get a command block

Command blocks cannot be crafted, so you have to give yourself one. You need to be an operator first, see Make yourself a server operator.

Then run this from the Console, or in game with a / in front:

give YourName command_block

If commands still will not run

  • Restart after saving. The setting is read once at boot; editing the file on a running server changes nothing until it restarts.
  • Check the block is powered. An Impulse command block needs a redstone signal. Set it to Repeat with Always Active if you want it running on its own.
  • Check your permissions. Placing and editing command blocks requires operator level 2 or higher.

Was this helpful?

Still need help? Contact support.