How to Enable or Disable Command Blocks on Your Minecraft Server

By VisPublished July 4, 20262 min read

Command blocks are Minecraft blocks that execute console commands when activated by redstone. This is useful for worlds and servers that do not have access to plugins or datapacks.

Placing the block requires you to be in the Creative gamemode, and if you're on a server, you must also be opped (see our guide on how to op yourself here). You can give yourself a Command Block by running this command give <username> minecraft:command_block in your server console, or in-game.

Once you have the block, you just place it and right-click it. Right-clicking it also requires you to be opped and in Creative gamemode.

How to enable command blocks on your server

  1. Go to your host's game panel.
  2. Click Config Files.
  3. Click on Server Settings, which should be at the top of the page.
  4. Find the Enable Command Blocks setting and set it to Enabled.
  5. Click save at the bottom.
  6. Restart the server.

How to disable command blocks on your server

  1. Go to your host's game panel.
  2. Click Config Files.
  3. Click on Server Settings, which should be at the top of the page.
  4. Find the Enable Command Blocks setting and set it to Disabled.
  5. Click save at the bottom.
  6. Restart the server.

How to toggle command blocks through files

This is useful if your host doesn't have a game panel, or if you're self-hosting the server.

  1. Go to your folder with all of the server files
  2. Find the server.properties file and open it.
  3. Find enable-command-block and set the value to true if you want command blacks enabled, and false if you don't.
  4. Save the file.
  5. Restart the server.

Find Minecraft Servers

Ready to compare active communities? Browse ranked Minecraft servers by votes, tags, and supported versions.