ConsulHosting
VPS HostingVirtual Private Servers for hosting online infrastructure.Managed VPS HostingManaged VPS Hosting for websites with DirectAdmin, cPanel or Plesk.
Web HostingWeb hosting for hobbyists up to medium-sized businesses.Domain NamesRegister a new domain or transfer your existing one to ConsulHosting.Reseller HostingWhite-label reseller hosting to resell web hosting services.
Minecraft HostingAffordable, high-quality Minecraft Server Hosting for Java & Bedrock.VPS HostingVirtual Private Servers for hosting online infrastructure.Web HostingWeb hosting for hobbyists up to medium-sized businesses.
About ConsulHostingDiscover our core values and what ConsulHosting is committed to.Knowledge baseLook for answers to your questions in the knowledge base.ContactContact us via live chat, email or a support ticket.
Log in
KnowledgebaseMinecraft HostingHow to Enable Command Blocks on Your Minecraft Server

Table of Contents

  1. Enabling command blocks from Minecraft 1.21.9 onward
  2. Enabling command blocks in Minecraft 1.21.8 and older
  3. Obtaining a command block

How to Enable Command Blocks on Your Minecraft Server

Published on July 18, 2026

Command blocks are redstone blocks in Minecraft that execute commands when you activate them. You can use these blocks to run commands at specific times, create custom contraptions, and much more. Command blocks are disabled by default on older Minecraft versions. This guide explains how to enable command blocks on your Minecraft server.

Tip Not sure which Minecraft version your server is using? Go to Software under Management in the game panel.

Enabling command blocks from Minecraft 1.21.9 onward

From Minecraft 1.21.9 onward, command blocks are enabled by default. If they are not working, you can check the setting in the console and enable them again.

  1. Log in to the game panel and go to your Minecraft server.
  2. Start the Minecraft server if it is not already running and wait until it has fully started.
  3. Open the Console page.
  4. Enter the following command and press Enter:
gamerule commandBlocksEnabled true

Command blocks will then be enabled immediately. You do not need to restart the Minecraft server.

Enabling command blocks in Minecraft 1.21.8 and older

  1. Log in to the game panel and go to your Minecraft server.
  2. Stop the Minecraft server if it is still running.
  3. Open the Files page.
  4. Click the server.properties file.
  5. Find the following line:
enable-command-block=false
  1. Change the value from false to true. The line should then look like this:
enable-command-block=true
  1. Save the file.
  2. Start the Minecraft server using the green start button.
Tip Is enable-command-block missing from the file? Add enable-command-block=true on a new line and save the file again.

Obtaining a command block

Command blocks are not available in the Minecraft Creative mode inventory and must therefore be obtained another way.

  1. Open the Console page.
  2. Give yourself or another player operator permissions.
  3. Replace PLAYERNAME in the command below with the username of the player who should receive the command block.
  4. Enter the command:
give PLAYERNAME minecraft:command_block
  1. The player can now place and use the command block.

Was this article helpful?

ConsulHosting logo wide

ConsulHosting

ContactKnowledge baseAccountAbout UsStatusAbuse report

Services

VPS HostingWeb HostingMinecraft HostingDomainsReseller HostingManaged VPS Hosting

© 2020-2026 ConsulHosting B.V.•Prices are excluding VAT unless stated otherwise

Terms of ServicePrivacyService Level Agreement