MinecraftMinecraftConfiguration

How to Allow Command Blocks in a Minecraft Server

Command blocks are disabled on every Minecraft server by default. Learn how to enable them in server.properties and start using impulse, chain, and repeating command blocks.

Command blocks are disabled on every Minecraft server by default. If you’ve ever placed one and watched it vanish from your inventory, or received the “Command blocks are not enabled on this server” message, you already know the frustration. Whether you’re building a custom adventure map, setting up teleport systems, or automating game mechanics, none of it works until you flip the right setting in your server files.

The fix is a single line in your server.properties file — here’s how to do it.

If you don’t have a server yet, Physgun’s Minecraft server hosting gives you easy access to your server.properties and a full file manager so making this change takes under a minute.

Step 1: Enable Command Blocks in server.properties

  1. Open your server’s root folder and locate server.properties. On the Physgun Gamepanel, go to Configuration > File Manager and open server.properties from there.

  2. Find the following line:

    enable-command-block=false
  3. Change it to:

    enable-command-block=true
  4. Save the file and restart your server.

That’s all it takes to enable command blocks. You can now place and interact with them in-game.

Step 2: Get a Command Block In-Game

To place a command block you need to be OP on the server, since command blocks are not available in the creative inventory by default. Once you have OP, open chat and run:

/give @p minecraft:command_block

This gives you one command block. Place it down and right-click it to open the command block interface.

Note: You must be in creative mode to place and use command blocks. They do not function in survival mode.

Step 3: Configure and Use Your Command Block

Inside the command block interface you will find a few key options:

Console Command field
Type any valid Minecraft command here (without the leading /). You can find a full list of commands on the Minecraft Wiki.

Block type

  • Impulse — Fires once when triggered.
  • Chain — Fires when the command block directly behind it in the chain completes its command.
  • Repeat — Fires every game tick (20 times per second) as long as it is active.

Condition

  • Conditional — Only fires if the previous command block in the chain succeeded.
  • Unconditional — Fires regardless of the previous block’s result.

Redstone

  • Needs Redstone — Only activates when receiving a redstone signal.
  • Always Active — Activates immediately when you click Done, no redstone required.

Once you have configured your command, click Done to save it. The block will execute according to the options you set.

Troubleshooting

Command block disappears when placed
enable-command-block is still set to false. Double-check that you saved the file and fully restarted the server (not just reloaded).

Right-clicking the block does nothing
You are not OP. Run /op YourUsername from the server console to grant yourself operator permissions.

Commands run but nothing happens
Make sure the command syntax is correct — command blocks do not use a leading /. Check the Minecraft Wiki for correct syntax for your server version.

Chain blocks not firing in order
Chain command blocks must face the next block in the sequence. Break and replace them if needed to ensure they are pointing in the right direction.

minecraft command blocksenable command blocks minecraft serverserver.properties command blockminecraft command block tutorial

Ready to get started?

Deploy your server in seconds and start building your community today.