Javascript required
Skip to content Skip to sidebar Skip to footer

How to Enable Command Blocks on a Server

How To Enable Command Blocks

Last modified on Oct 21, 2021 in control panel

mc head By ApexHosting

  • Facebook
  • Twitter
  • Youtube

Overview

A command block is a special block in Minecraft that can be used to execute console commands when activated by redstone. These blocks are extremely useful for small tasks with a few commands or even massive adventure maps with a ton of different triggered events using command blocks. The only limiting factor will be your imagination when it comes to command block creations. In this guide, we will go over how you can access command blocks as well as what all the different settings and configuration options do within the block itself.

How to Access Command Blocks

Due to the power of the command blocks, there are a few conditions that need to be met in order to use them in your server. First, you will need to enable command blocks directly in the server settings. Secondly, you will need to be OP on the server and in creative mode to be able to place the block.

Enable Command Blocks

  1. Head to your multicraft control panel and select the Config Files tab on the left hand side.
  2. Select Server Settings which will be at the top of the page.
  3. Scroll down the page until you find Enable Command Blocks.
  4. Set this setting to Enabled and then click save.
  5. Restart the server to allow the setting to take effect.

Getting Command Blocks

You will not find these blocks like you normally would find others in the creative mode menu. In order to get this type of block, you must use the /give command. In order to access this command you will need to be OP on the server. If you are not already OP on the server head to the multicraft panel console and issue the following command:

"op USERNAME" -  Be sure to not use a / as any input in the console will already be considered a command.


Once you have OP status on the server you will be able to issue the proper command to give yourself a command block.

/give USERNAME minecraft:command_block

How to Use Command Blocks

Once you have a command block you should be able to place it in your world if you have followed all the previous steps. When you right-click the block you will be met with the following interface:

console command

Console Command Input

The Console Command input field is where you will want to place the command the block will run. This field is limited to 32,500 characters. Considering these commands are being executed by the server itself, such as if you run them in the console, they do not need to start with a /. Anything you enter in this field will be executed upon activation of the block with redstone.

Previous Output

As you can see on the right-hand side there is a tiny button with the letter O. This means that the previous output will be stored and displayed in the command block. If you click the button and change this to an X it will not store and display the previous output.

Block Type

Command Blocks will have three different types they can be set to. This includes Impulse, Chain, and Repeat command blocks. Impulse command blocks will be the typical orange color and these execute once each time they are activated. The chain command blocks will be green. These will execute each time they are triggered assuming they have been activated. Lastly, the Repeat command blocks will be purple. These execute once every game tick while they are activated.

Condition

The condition of the block can be set to either Conditional or Unconditional. The conditional setting would make the command block execute only if the command block behind it has executed successfully. With the unconditional setting will make the command block execute and it would not matter if any other command block behind it executes properly.

Redstone

The redstone setting is fairly straightforward. When in the Needs Redstone state the command block can only be activated with redstone. In the Always Active state, the command block will always be active even without a redstone signal.

Fun Command Block Ideas

Cookie Announcer

This simple command blockchain can give a random player some cookies! As well as announce it to the server.

For this, you will need 4 command blocks. The first must be a normal Impulse command block. And the last 3 should be set to be Chain command blocks. Be sure to also either place some sort of redstone power next to the blocks or set the Chain blocks to Always Active in the interface. Be sure to have the arrows pointing toward the next command block in the sequence. I have gone ahead and set the blocks to Always Active and my chain looks like this:

command blocks

The first command block should have the following command:

/tag @r add cookie


The second command block should have the following command:

/give @a[tag=cookie] minecraft:cookie 5


The third command block should have the following command:

/say @a[tag=cookie] has been given 5 cookies!


Lastly the fourth command block should have the following command:

/tag @a[tag=cookie] remove cookie

Once you activate the first command block a random player will be given 5 cookies as well as it will be announced to the server!

Teleport System

With command blocks, you could set up very elaborate teleportation systems on your server. Instead of using a traditional nether portal highway in the nether, you could set up a few teleport stations around your map.

Each command block you set up at one of the stations could teleport a player on button press to another one of the stations on the map. The command you will need to use for this will be:

/teleport @p                                                                  

It is recommended that you scout out teleport locations first to ensure the players are not teleporting into any dangerous situations.

Common Issues

Unusable Commands

You may find that the commands you are trying to have the command block execute are not working. This may be due to the certain limitations the block has on what commands it can run successfully. Command Blocks will execute commands with an OP level 2 permissions. This means the following commands cannot be used with these blocks.

/ban, /banlist, /ban-ip, /debug, /deop, /kick, /op, /pardon, /pardon-ip, /publish, /save-all, /save-off, /save-on, /stop, /whitelist.

Related Content

Minecraft Server Commands

Can't Keep Up Error

How to Enable Command Blocks on a Server

Source: https://apexminecrafthosting.com/how-to-enable-command-blocks/