How to make a Command Block in Minecraft (2024)

This Minecraft tutorial explains how to craft a command block with screenshots and step-by-step instructions.

In Minecraft, a command block is an item that you can not make with a crafting table or furnace and it is not available through the Creative Inventory menu. You can only add a command block to your inventory using a game command.

How to make a Command Block in Minecraft (1)

Let's explore how to add a command block to your inventory.

Supported Platforms

A command block is available in the following versions of Minecraft:

PlatformSupported (Version*)
How to make a Command Block in Minecraft (2)Java Edition (PC/Mac)Yes
How to make a Command Block in Minecraft (3)Pocket Edition (PE)Yes (1.0.5)
How to make a Command Block in Minecraft (4)Xbox 360No
How to make a Command Block in Minecraft (5)Xbox OneYes (1.2)
How to make a Command Block in Minecraft (6)PS3No
How to make a Command Block in Minecraft (7)PS4Yes (1.14.0)
How to make a Command Block in Minecraft (8)Wii UNo
How to make a Command Block in Minecraft (9)Nintendo SwitchYes (1.5.0)
How to make a Command Block in Minecraft (10)Windows 10 EditionYes (1.0.5)
How to make a Command Block in Minecraft (11)Education EditionYes (1.0.18)

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Give Command for Command Block

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Give Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac), the syntax to give a player a command block using the /give command is:

/give <targets> command_block [amount]

Definitions

  • targets is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Give Command in Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition (PE), the syntax to give a player a command block using the /give command is:

/give <player> command_block [amount]

Definitions

  • player is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Give Command in Minecraft Xbox One Edition

In Minecraft Xbox One Edition, the syntax to give a player a command block using the /give command is:

/give <player> command_block [amount]

Definitions

  • player is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Give Command in Minecraft PS4 Edition

In Minecraft PS4 Edition, the syntax to give a player a command block using the /give command is:

/give <player> command_block [amount]

Definitions

  • player is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Give Command in Minecraft Nintendo Switch

In Minecraft Nintendo Switch Edition, the syntax to give a player a command block using the /give command is:

/give <player> command_block [amount]

Definitions

  • player is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Give Command in Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the syntax to give a player a command block using the /give command is:

/give <player> command_block [amount]

Definitions

  • player is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Give Command in Minecraft Education Edition

In Minecraft Education Edition, the syntax to give a player a command block using the /give command is:

/give <player> command_block [amount]

Definitions

  • player is the name of the player (or a target selector) that you wish to give the command block to.
  • amount is the number of command blocks that you want to give. If you don't specify an amount, the player will be given 1 command block.

Examples

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Example in Java Edition (PC/Mac)

To give 1 command block to the player named DigMinecraft:

/give DigMinecraft command_block

To give 64 command blocks to the nearest player:

/give @p command_block 64

To give 3 command blocks to all players:

/give @a command_block 3

Example in Pocket Edition (PE)

To give 1 command block to the player named Axe2Grind:

/give Axe2Grind command_block

To give 64 command blocks to all players:

/give @a command_block 64

Example in Xbox One Edition

To give 1 command block to the player named TheEarthMover:

/give TheEarthMover command_block

To give 8 command blocks to all players:

/give @a command_block 8

Example in PS4 Edition

To give 1 command block to the player named DigMinecraft:

/give DigMinecraft command_block

To give 2 command blocks to all players:

/give @a command_block 2

Example in Nintendo Switch Edition

To give 1 command block to the player named DigMinecraft:

/give DigMinecraft command_block

To give 2 command blocks to all players:

/give @a command_block 2

Example in Windows 10 Edition

To give 1 command block to the player named TheExcavator:

/give TheExcavator command_block

To give 10 command blocks to the nearest player:

/give @p command_block 10

Example in Education Edition

To give 1 command block to the player named TheEarthMover:

/give TheEarthMover command_block

To give 64 command blocks to the nearest player:

/give @p command_block 64

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.
  • For Pocket Edition (PE), tap on the chat button How to make a Command Block in Minecraft (12) at the top of the screen.
  • For Xbox One, press the D-Pad (right) How to make a Command Block in Minecraft (13) on the controller.
  • For PS4, press the D-Pad (right) How to make a Command Block in Minecraft (14) on the controller.
  • For Nintendo Switch, press the right arrow button How to make a Command Block in Minecraft (15) on the controller.
  • For Windows 10 Edition, press the T key to open the chat window.
  • For Education Edition, press the T key to open the chat window.

2. Type the Command

In this example, we will give 1 command block to the player called DigMinecraft with the following command:

/give DigMinecraft command_block

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

How to make a Command Block in Minecraft (16)

Once the cheat has been entered, the command block will be added to the player's inventory.

How to make a Command Block in Minecraft (17)

You will see the message "Given [Command Block] x 1 to DigMinecraft" appear in the lower left corner of the game window. You have now given 1 command block to the player called DigMinecraft.

Congratulations, you have learned how to craft a command block using the /give command in Minecraft.

Item ID and Name

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Minecraft Java Edition (PC/Mac)

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (18)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (19)Java1.8 - 1.12
How to make a Command Block in Minecraft (20)Command Block
(minecraft:command_block)
64How to make a Command Block in Minecraft (21)Java1.13 - 1.20.6

Minecraft Pocket Edition (PE)

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (22)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (23)PE1.0.5 - 1.20.80

Minecraft Xbox One

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (24)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (25)Xbox One1.6.0 - 1.20.80

Minecraft PS4

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (26)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (27)PS41.14.0 - 1.20.80

Minecraft Nintendo Switch

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (28)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (29)Switch1.6.0 - 1.20.80

Minecraft Windows 10 Edition

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (30)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (31)Windows1.0.5 - 1.20.80

Minecraft Education Edition

In Minecraft, a command block has the following Name, ID and DataValue:

ItemDescription
(Minecraft ID Name)
Data ValueStack SizePlatformVersion(s)
How to make a Command Block in Minecraft (32)Command Block
(minecraft:command_block)
064How to make a Command Block in Minecraft (33)Education1.0.18 - 1.19.52

Definitions

  • Description is what the item is called and (Minecraft ID Name) is the string value that is used in game commands.
  • Data Value (or damage value) identifies the variation of the block if more than one type exists for the Minecraft ID.
  • Stack Size is the maximum stack size for this item. While some items in Minecraft are stackable up to 64, other items can only be stacked up to 16 or 1. (NOTE: These stack sizes are for vanilla Minecraft only. If you are running a mod, some mods may change the stack size for an item.)
  • Platform is the platform that applies.
  • Version(s) is the Minecraft version numbers that the Minecraft ID and Name are valid for.

Block States for Command Block

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10

Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac), the block states for Command Block are:

Block StateValueDefaultRequiredExampleDescription
conditionalfalseYesNo[conditional:false]Item is not in conditional mode
conditionaltrueNoNo[conditional:true]Item is in conditional mode
facingnorthYesNo[facing:north]Item is facing North
facingsouthNoNo[facing:south]Item is facing South
facingeastNoNo[facing:east]Item is facing East
facingwestNoNo[facing:west]Item is facing West
facingdownNoNo[facing:down]Item is facing Down
facingupNoNo[facing:up]Item is facing Up

Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition (PE), the block states for Command Block are:

Block StateValueDefaultRequiredExampleDescription
conditional_bitfalseYesNo["conditional_bit"=false]Item is not in conditional mode
conditional_bittrueNoNo["conditional_bit"=true]Item is in conditional mode
facing_direction0YesNo["facing_direction"=0]Item is facing Down
facing_direction1NoNo["facing_direction"=1]Item is facing Up
facing_direction2NoNo["facing_direction"=2]Item is facing North
facing_direction3NoNo["facing_direction"=3]Item is facing South
facing_direction4NoNo["facing_direction"=4]Item is facing West
facing_direction5NoNo["facing_direction"=5]Item is facing East

Minecraft Xbox One

In Minecraft Xbox One, the block states for Command Block are:

Block StateValueDefaultRequiredExampleDescription
conditional_bitfalseYesNo["conditional_bit"=false]Item is not in conditional mode
conditional_bittrueNoNo["conditional_bit"=true]Item is in conditional mode
facing_direction0YesNo["facing_direction"=0]Item is facing Down
facing_direction1NoNo["facing_direction"=1]Item is facing Up
facing_direction2NoNo["facing_direction"=2]Item is facing North
facing_direction3NoNo["facing_direction"=3]Item is facing South
facing_direction4NoNo["facing_direction"=4]Item is facing West
facing_direction5NoNo["facing_direction"=5]Item is facing East

Minecraft PS4

In Minecraft PS4, the block states for Command Block are:

Block StateValueDefaultRequiredExampleDescription
conditional_bitfalseYesNo["conditional_bit"=false]Item is not in conditional mode
conditional_bittrueNoNo["conditional_bit"=true]Item is in conditional mode
facing_direction0YesNo["facing_direction"=0]Item is facing Down
facing_direction1NoNo["facing_direction"=1]Item is facing Up
facing_direction2NoNo["facing_direction"=2]Item is facing North
facing_direction3NoNo["facing_direction"=3]Item is facing South
facing_direction4NoNo["facing_direction"=4]Item is facing West
facing_direction5NoNo["facing_direction"=5]Item is facing East

Minecraft Nintendo Switch

In Minecraft Nintendo Switch, the block states for Command Block are:

Block StateValueDefaultRequiredExampleDescription
conditional_bitfalseYesNo["conditional_bit"=false]Item is not in conditional mode
conditional_bittrueNoNo["conditional_bit"=true]Item is in conditional mode
facing_direction0YesNo["facing_direction"=0]Item is facing Down
facing_direction1NoNo["facing_direction"=1]Item is facing Up
facing_direction2NoNo["facing_direction"=2]Item is facing North
facing_direction3NoNo["facing_direction"=3]Item is facing South
facing_direction4NoNo["facing_direction"=4]Item is facing West
facing_direction5NoNo["facing_direction"=5]Item is facing East

Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the block states for Command Block are:

Block StateValueDefaultRequiredExampleDescription
conditional_bitfalseYesNo["conditional_bit"=false]Item is not in conditional mode
conditional_bittrueNoNo["conditional_bit"=true]Item is in conditional mode
facing_direction0YesNo["facing_direction"=0]Item is facing Down
facing_direction1NoNo["facing_direction"=1]Item is facing Up
facing_direction2NoNo["facing_direction"=2]Item is facing North
facing_direction3NoNo["facing_direction"=3]Item is facing South
facing_direction4NoNo["facing_direction"=4]Item is facing West
facing_direction5NoNo["facing_direction"=5]Item is facing East

Definitions

  • Block State is the internal name for the block state.
  • Value is the value for the block state.
  • Default indicates that it is the default, if omitted.
  • Required indicates that it must be included in command to properly identify this item/block.
  • Example shows how to format the block state to be used in the /fill, /setblock, /clone, or /testforblock command.

Things to Do with Command Blocks

Here are some activities that you can do with command blocks in Minecraft:

Build a House with One CommandBuild a Castle with One CommandGive an Enchanted Diamond PickaxeGive an Enchanted Diamond SwordSummon Giant with Golden Armor and SwordSummon Iron Skeleton Riding HorseSummon a Killer Spider Jockey
Summon Villager with Customized TradeSummon Zombie with Diamond Armor and SwordTeleport PlayerTeleport Player with ItemHow to run Multiple CommandsHow to Use a Command BlockRedstone Device that Teleports Player with Item
How to make a Command Block in Minecraft (2024)
Top Articles
Latest Posts
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 5444

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.