> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Allow Command Blocks on Minecraft Server

${youtube}[](hLjd2ci_v7c)


Enabling command blocks on your Minecraft server opens up a world of creative possibilities. With command blocks, you can automate tasks, set up mini-games, or create custom elements to enhance your gameplay with more complex commands.

In this guide, we'll break down the process into simple, easy-to-follow steps—to enable command blocks on your own Minecraft server.

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

## Enabling Command Blocks

There are different method for enabling command blocks on your Minecraft server depending on the Minecraft server edition you are using. This guide will show you how to enable command blocks on both versions of Minecraft.

### For Minecraft Java Edition

To enable command blocks on Minecraft Java Edition:

1. Turn off your server in the control panel.
    
    ![Turning off Minecraft server](https://rhbarber.com/ss/iluf5.png)
2. Go to the Properties Tab and enable the "enable command block" option.
    
    ![Properties Tab with the "enable command block" setting highlighted](https://images.surferseo.art/8fe9cc83-91f3-4586-b41a-97b72a79a771.png)
    
    If you can't find enable command blocks in the "Properties" tab, you can edit the settings in the `server.properties` file inside your server's files using the Files tab. Just set the `enable-command-block` setting from `false` to `true`, then save your changes.
    
    ![server.properties file with the default setting highlighted](https://images.surferseo.art/2ed48ce7-4616-4414-ae77-8c1efe26a82d.png)
3. Restart your Minecraft server, and you should now be able to give yourself a command block by running the `give` command in the game or the server console.
    
    ![Give command example](https://rhbarber.com/ss/ve8vz.png)

Congratulations, you've successfully enabled command blocks on Minecraft Java Edition!

### For Minecraft Bedrock Edition

To enable command blocks on Minecraft Bedrock Edition:

1. Turn off your server in the control panel.
    
    ![Turning off server](https://rhbarber.com/ss/iluf5.png)
2. Go to the Startup Tab and edit the "Allow Cheats" setting to `true`.
    
    ![Startup Tab with the default "Allow Cheats" setting highlighted](https://images.surferseo.art/09d364f3-e7a3-43d9-a2e2-611a7eafb548.png)
3. Restart your Minecraft server, and you should now be able to give yourself a command block by running the `give` command in the game or the server console.

Congrats, you've successfully enabled command blocks on Minecraft Bedrock Edition?

## How to Use Command Blocks in Game

Command blocks and functions can be used, among many other things, to change the difficulty, change the state of the weather, change to creative mode, or give a player predesignated edited items.

Command blocks can execute commands when activated by Redstone power. Command blocks have level 2 permissions in Java Edition and level 1 on Bedrock Edition, so it can be used to allow a specific use of a command by players who can't use that command in general (for example, allowing anyone to obtain a specific item with /give without allowing everyone to /give themselves whatever they want).

### Things You Can Use Command Blocks For

There are a few things you can use command blocks for, like:

* Summoning modified entities.
    
    ![Summoning a custom blaze - Command block view](https://rhbarber.com/ss/skpuy.png)
* Giving edited items.
    
    ![Giving an enchanted tool to the nearest player - Command block view](https://rhbarber.com/ss/cfmjt.png)
* Teleport players or entities when certain events are accomplished. For example, pressing a pressure plate.
    
* Creating and sending custom messages.
    
* Modifying the world.

## Still have some questions?

If you require any further assistance, please create a ticket [here](https://billing.sparkedhost.com/submitticket.php).