search
Minecraft Wiki

Minecraft Wiki

936 pages 4331 edits Updated: Jul 06
Wiki BG

Minecraft Command Block

When it comes to commands the sky's the limit as to what you can accomplish in Minecraft. When it comes to spawning certain mobs or items in-game, however, sometimes typing certain commands in-game might not suffice in whatever it is that you seek.


When it comes to spawning certain mobs or items in game however, sometimes typing certain commands in-game might not suffice in whatever it is that you seek


The command block can help make up for these shortcomings by allowing you to bring into your world very specific items or mobs in certain states for your own purposes and whatever it is you desire. Using them can be a bit daunting, but with some practice, they can be very useful tools for whatever your creativity desires.


How To Acquire Command Block in Minecraft


To gain the command block you will have to use a certain console command. Bring up your console command bar and enter the syntax as follows:


Syntax: /give @s command_block


If this does not work, in place of @s enter your username so that the game knows to specifically give the command block to you when playing.


How to Use a Command Block in Minecraft


There are a multitude of ways to use the command block, but for today let's go over one of the basics. In order to truly use this block, you will need to fulfill certain conditions beforehand.


Step 1: Enter the Command Block UI


First, you need to enter a command into the block so that it has something that it can act upon. In this case, let's summon a pillager captain. To summon your own pillager captain put in the console command as follows in the picture below.


There are a multitude of ways to use the command block, but for today let's go over one of the basics


Keep in mind however that the bar that you insert your command into can expand and grow larger if you press the plus sign that is right next to it.


Keep in mind however that the bar that you insert your command into can expand and grow larger if you press the plus sign that is right next to it


Step 2: Power your Command Block


Once you have your command to summon this illager in, you need to attach a device that will allow you to summon it in the first place. In this case, we will use a wooden button.


Once you have your command to summon this illager in, you need to attach a device that will allow you to summon it in the first place. In this case we will use a wooden button. 


Once you have that wooden button, make sure that you are crouching before you press the use button to attach the item properly. If you do not crouch you will instead go into the command block’s menu.


Step 3: Activating your Command Block


After the button is properly attached to the side of your command block, all you need to do is press the button and your pillager captain should appear in front of you.


After the button is properly attached to the side of your command block, all you need to do is press the button and your pillager captain should appear in front of you.


This mob is but one example of what you can summon with this particular item, so imagine the possibilities of what else you can bring into your world. With the command block, it can allow you to summon certain modded enemies or enemies with mounts, weapons, enchantments or other add ons that separate them from their generic counterparts that you would normally find in their spawn egg.


Command Block Interface in Minecraft


When you first open a command block, it may seem intimidating to learn what each function does. However, each function is relatively simple and learning its function can help you get exactly what you want out of your command block.


There are a multitude of ways to use the command block, but for today let's go over one of the basics

Block Type


On the top left, Block Type represents how a command block will function after receiving power. There are three different block types to choose from: Impulse, Chain, and Repeat.


  1. Impulse: The command block activates when it receives a redstone signal.
  2. Chain: The command block activates when a command block pointing into it is activated.
  3. Repeat: The command block will repeat itself once every in-game tick. There are 20 ticks per second in Minecraft.


Condition


Below Block Type is the Condition function. This function will determine when a command block executes its command. There are two different conditions to choose from: Conditional and Unconditional.


  1. Conditional: The command blocks’ command will only complete if the previous block in the chain was successful.
  2. Unconditional: The command block’s command will complete regardless of if the previous command block completed or not.


Redstone


This line simply dictates whether the command block requires a redstone pulse to activate or not. There are two options to pick between: Needs Redstone and Always Active.


  1. Needs Redstone: The command block will only activate once it receives redstone power.
  2. Always Active: The command block will always activate with or without redstone.


Execute on First Tick


This setting is only available for repeating command blocks with a delay. If this setting is enabled, the command will execute as soon as the block receives power. If it is disabled, the command will not run the first time until the delay is finished.


Delay in Ticks


This setting will define how long a command block needs to wait before executing its command after receiving power.


Conclusion


Command blocks are versatile in what they can do and should be fully taken advantage of those capabilities so you can experience the full potential of the game. Just keep in mind that if you are not spawning anything on your first try, always double and even triple-check to make sure that your command is entered correctly. You may not get it right the first couple of times. Eventually, however, it will become second nature with enough practice.



This functionality is open only to Wiki Admins

Popular In Minecraft Wiki

Comments

Latest Wiki Pages

Smelting

Smelting

Minecraft Wiki 10 mn 17 d
Sky Dimension in Minecraft

Sky Dimension in Minecraft

Minecraft Wiki 10 mn
Education Edition

Education Edition

Minecraft Wiki 10 mn 4 d
Getting Started in Minecraft

Getting Started in Minecraft

Minecraft Wiki 10 mn 8 d
The Twilight Forest Minecraft mod

The Twilight Forest Minecraft mod

Minecraft Wiki 11 mn 23 d
Mowzie’s Mobs

Mowzie’s Mobs

Minecraft Wiki 11 mn 24 d
What is Pixelmon in Minecraft?

What is Pixelmon in Minecraft?

Minecraft Wiki 11 mn 25 d
How to Craft an Oak Button in Minecraft

How to Craft an Oak Button in Minecraft

Minecraft Wiki 11 mn 25 d
How to Craft a Tripwire Hook in Minecraft?

How to Craft a Tripwire Hook in Minecraft?

Minecraft Wiki 11 mn 27 d
How to Craft a Lever in Minecraft?

How to Craft a Lever in Minecraft?

Minecraft Wiki 11 mn 28 d
How to craft a Redstone Repeater in Minecraft?

How to craft a Redstone Repeater in Minecraft?

Minecraft Wiki 11 mn 29 d
How to craft a Daylight Detector in Minecraft?

How to craft a Daylight Detector in Minecraft?

Minecraft Wiki 11 mn
How to Craft a Redstone Comparator in Minecraft

How to Craft a Redstone Comparator in Minecraft

Minecraft Wiki 11 mn 1 d
Can Dragon Fireball be used as a decorative item in Minecraft?

Can Dragon Fireball be used as a decorative item in Minecraft?

Minecraft Wiki 11 mn 2 d
How to Craft a Beacon in Minecraft

How to Craft a Beacon in Minecraft

Minecraft Wiki 11 mn 4 d
What are Elder Guardians and what do they do in Minecraft?

What are Elder Guardians and what do they do in Minecraft?

Minecraft Wiki 11 mn 9 d
Verdant Froglight in Minecraft

Verdant Froglight in Minecraft

Minecraft Wiki 11 mn 11 d
What are Dragon Fireballs in Minecraft?

What are Dragon Fireballs in Minecraft?

Minecraft Wiki 11 mn 12 d
What is Structure Void in Minecraft?

What is Structure Void in Minecraft?

Minecraft Wiki 11 mn 13 d
What are Structure blocks in Minecraft?

What are Structure blocks in Minecraft?

Minecraft Wiki 11 mn 13 d