NEW 📢 Limited launch offer: up to 70% off your first month on every game!See plans

How to turn on command blocks on your Minecraft server

MinecraftUpdated Oct 28, 20263 min read

On Minecraft 1.21.9 and newer, command blocks are controlled by a game rule that is on by default: check Command blocks work under Settings, Game Rules. On older versions they are off by default: switch Command blocks on in Server Properties (Java) and restart.

Recent versions: the game rule

  1. Open your server in the panel and click the Settings tab.
  2. Under Config files, click Game Rules.
  3. Type command in the search box at the top.
  4. Make sure Command blocks work is on. Its key is command_blocks_work. On Minecraft 1.21.9 and 1.21.10 the same rule is called Command blocks enabled (commandBlocksEnabled).
  5. If you changed it, click Save. It applies at once.
The Game Rules page with Command blocks work

In the Console: gamerule command_blocks_work true (on 1.21.9 and 1.21.10: gamerule commandBlocksEnabled true).

The rule Command block output next to it decides whether command blocks announce what they did in chat.

Older versions: the switch

  1. Open the Settings tab and click Server Properties (Java).
  2. Switch Command blocks on.
  3. Click Save & restart.

The page only shows the settings your version has, so you see either the switch or the game rule.

Placing and editing command blocks

Command blocks cannot be obtained in survival without commands. Only an operator in creative mode can place, break or edit them, and on a server the operator needs level 2 or more:

  1. Make the player an operator: How to op yourself and manage permissions on your Minecraft server.
  2. In the game, type /gamemode creative, then /give @s minecraft:command_block.

Commands inside a command block run at permission level 2.

Good to know

Already hosting it somewhere else? Move your server to us

OUR LATEST BLOGS