Commands Blocks

Command blocks are blocks capable of executing commands whenever we want, they will be activated by redstone signals.


Get Block

To obtain it we will obtain it through commands, with a /give.

/give @p command_block
GIF

Interface

The interface of a command block can be complicated, so let's get started!

GIF

Hover Note

It is the name of the command block, if you execute a /say, it will be under its name


Block Type

Block Type defines what type of command block this is. There are 3 options:

Impulse command blocks are activated when they receive a redstone signal.
Chain command blocks are activated when a command block pointing into it is activated.
Repeat command blocks are activated once every in-game tick, as long as they have a redstone signal. Minecraft has 20 ticks per second.


Condition

Condition defines when a command block will execute its action. There are 2 options:

Conditional will only execute if the previous block in a chain was successful.
Unconditional will execute regardless if the previous block was successful or not.


Redstone

Redstone defines whether or not a command block requires redstone to activate. There are 2 options:

Needs Redstone will set the command block to only activate when it has redstone power.
Always Active will set the command block to always activate with or without redstone. For impulse command blocks, this causes them to only run once, so it isn't very useful. For chain command blocks, this is enabled by default.


Execute on First Tick

Execute on First Tick is only usable for repeating command blocks with a delay. If enabled, the command will execute as soon as the block is powered, and then will wait for the delay before running again. If disabled, the command will not run the first time until the delay has finished.


Delay in Ticks

Delay in Ticks is a value that defines how long a command block waits to execute after the command block receives redstone power.


Command Input

In this box we can enter the command that we want it to execute, here it is not necessary to put the initial /.


Previus Output

In this box the command in case of failure will tell us where the syntasy failure has been detected.