How To Enable Command Blocks On A Minecraft Server Wiki Guide

This Minecraft tutorial explains how to enable command blocks on a Minecraft server with screenshots and step-by-step instructions.

By default when you start a new Minecraft server, command blocks will be disabled even for players with operator status.

img-responsive

This means that players can not program or run command blocks on the multiplayer server. You can enable command blocks by changing a setting in the server.properties file.

Let’s explore how to allow command blocks on a Minecraft server.

img-responsive

Requirements

You have to first create a multiplayer server in Minecraft and have privileges to update the server.properties file.

What is the server.properties File?

The server.properties file contains all of the customizable settings for a multiplayer Minecraft server.

Here is what the server.properties file looks like:

#Minecraft server properties
#Mon Oct 24 09:22:22 MDT 2016
spawn-protection=16
max-tick-time=60000
generator-settings=
force-gamemode=false
allow-nether=true
gamemode=0
broadcast-console-to-ops=true
enable-query=false
player-idle-timeout=0
difficulty=1
spawn-monsters=true
op-permission-level=4
announce-player-achievements=true
pvp=true
snooper-enabled=true
level-type=DEFAULT
hardcore=false
enable-command-block=false
max-players=20
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
server-port=25565
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=10
spawn-animals=true
online-mode=true
max-build-height=256
level-seed=
use-native-transport=true
enable-rcon=false
motd=A Minecraft Server

Each property is stored on its own line in the server.properties file and contains the custom settings for the Minecraft server. The value before the equal sign is the property name and the value after the equal sign is the setting for the property.

In this example, the enable-command-block property is set to false so players can not program or run command blocks on the server. To enable command blocks, you must change the enable-command-block property to true in the server.properties file:

enable-command-block=true

Steps to Enable Command Blocks on a Server

Let’s go through the steps to enable command blocks on a Minecraft server.

1. Stop the Minecraft Server

Before you edit the server.properties file, you should first shutdown the server. If you don’t shutdown the server, any settings you change may be overwritten when the server shutdowns next.

To shutdown the server, type the /stop command:

/stop

To enter the /stop command in Minecraft, you must enter it as a server command (see below):

img-responsive

You should see the message “Stopping the server” appear in the server console. Once the command has been entered, the server will stop and all server data will be saved to disk.

2. Edit the server.properties file

Now that you have shutdown the server, you can edit the server.properties file without any worries that your changes will be overwritten. To enable command blocks, change the enable-command-block property in the server.properties file to true:

enable-command-block=true

3. Restart the Minecraft Server

Finally, restart the Minecraft server so that the changes to the server.properties file can take affect. Once the server is running again, players (who have operator status) will be able to program and run command blocks.

Congratulations, you just learned how to enable command blocks on a Minecraft server!

Other Server Commands

Here are some other server commands you can use in Minecraft:

img-responsive How to Use the Ban Command
img-responsive How to Use the Ban-IP Command
img-responsive How to Use the Banlist Command
img-responsive How to Use the Deop Command
img-responsive How to Use the List Command
img-responsive How to Use the Op Command
img-responsive How to Use the Pardon Command
img-responsive How to Use the Pardon-IP Command
img-responsive How to Use the Stop Command

Mods

1.19.4 Mods

1.19.3 Mods

1.19.2 Mods

1.18.2 Mods

1.16.5 Mods

1.15.2 Mods

1.12.2 Mods

1.8.9 Mods

1.7.10 Mods

1.18.1 Mods

1.17.1 Mods

1.14.4 Mods

1.13.2 Mods

1.11.2 Mods

1.10.2 Mods

1.9.4 Mods

Minecraft Modpacks

1.19.4 Modpacks

1.19.3 Modpacks

1.19.2 Modpacks

1.18.2 Modpacks

1.16.5 Modpacks

1.12.2 Modpacks

1.7.10 Modpacks

Forge Mods

Fabric Mods

Quilt Mods

Resource Packs

1.19.4 Resource Packs

1.19.3 Resource Packs

1.19.2 Resource Packs

1.18.2 Resource Packs

1.16.5 Resource Packs

1.15.2 Resource Packs

1.12.2 Resource Packs

1.8.9 Resource Packs

1.7.10 Resource Packs

1.18.1 Resource Packs

1.17.1 Resource Packs

1.14.4 Resource Packs

1.13.2 Resource Packs

1.11.2 Resource Packs

1.10.2 Resource Packs

1.9.4 Resource Packs

Shaders

1.19.4 Shaders

1.19.3 Shaders

1.19.2 Shaders

1.18.2 Shaders

1.17.1 Shaders

1.16.5 Shaders

Maps

1.19.4 Maps

1.19.3 Maps

1.19.2 Maps

1.18.2 Maps

1.16.5 Maps

1.15.2 Maps

1.12.2 Maps

1.8.9 Maps

1.7.10 Maps

1.18.1 Maps

1.17.1 Maps

1.14.4 Maps

1.13.2 Maps

1.11.2 Maps

1.10.2 Maps

1.9.4 Maps

Data Packs

1.19.4 Data Packs

1.19.3 Data Packs

1.19.2 Data Packs

1.18.2 Data Packs

1.16.5 Data Packs

1.15.2 Data Packs

1.18.1 Data Packs

1.17.1 Data Packs

1.14.4 Data Packs

1.13.2 Data Packs

MCPE/Bedrock

Mods & Addons

MCPE 1.19 Add-ons

MCPE 1.19 Mods

Texture Packs

MCPE 1.19 Texture Packs

MCPE 1.19 Resource Packs

Maps

MCPE 1.19 Maps

Clients

MCPE 1.19 Clients

Mod Menu Clients

Shaders

MCPE 1.19 Shaders

Render Dragon Shaders

Launchers

Skin Packs

Clients

1.19.4 Clients

1.19.3 Clients

1.19.2 Clients

1.18.2 Clients

1.16.5 Clients

1.12.2 Clients

1.8.9 Clients

Launchers

1.19.4 Launchers

1.19.3 Launchers

1.19.2 Launchers

1.18.2 Launchers

1.16.5 Launchers

1.12.2 Launchers

1.7.10 Launchers

Seeds

1.19.4 Seeds

1.19.3 Seeds

1.19.2 Seeds

1.18.2 Seeds

Skins

Plugins

Bukkit Plugins

Spigot Plugins

Paper Plugins

Tutorials

Installation Guide

Mobs Wiki Guide

Seeds Wiki Guide

Biomes Wiki Guide

Status Effects Wiki Guide

Enchantments Wiki Guide

Materials Wiki Guide

Command Blocks

Versions

Backlinks