How to Get and Use a Command Block in Minecraft

Have you ever tried using cheats or commands in Minecraft? They are powerful, unique, and literally game-changing. But at the same time, there are also limited in so many ways. For starters, you can’t use multiple commands at once. You have to retype each command whenever you want to repeat it. Moreover, the chatbox where you input the commands doesn’t even have a separate UI. We can easily make an article on ways to improve commands in Minecraft, but there is already a solution. If you know how to get a command block in Minecraft, your life can be much easier. It is a unique block that allows you to specify commands that can be triggered at your convenience. Moreover, it is the secret behind the success of some of the best Minecraft adventure maps. With that said, let’s figure out how to get a command block in Minecraft.

Get Command Block On Minecraft Java (Windows, macOS, & Linux)

Command blocks have world-changing impacts, so it’s best to create a new world while testing them. But you can also use them in your existing world. With that said, follow these steps to obtain a command block in Minecraft Java on Windows, macOS, and Linux.

1. To begin, click on the “Singleplayer” option on the home screen.

Minecraft SinglePlayer Option

2. Then, choose the “Create New World” option located in the bottom right corner.

Create new world in snapshot

3. Here, make sure that the “Allow Cheats” option is set to On. Then, click on the “Create New World” button. You can also change your game mode to creative for your ease.

create world with cheats on Minecraft

4. If you want to turn on cheats in an existing world, use the LAN World options in the pause menu.

Java MC lan world option

5. Once you are in a world with cheats enabled, press the “T” key and type the following command. Then, press Enter.

/give @p minecraft:command_block

Commands in Minecraft are case-sensitive, so make sure to copy and paste or type the same command. If executed properly, a command block will show up in your inventory.

Command Block Command in Minecraft Java

Get Command Block on Minecraft Bedrock (Xbox, PS4, & Switch)

You can use the following steps to get Minecraft Command Block on Switch, PS4, Xbox One/ Series X & S, and the PC edition of Minecraft Bedrock. The controls of each console might differ, but the process is the same.

1. First, open Minecraft and click the “Play” button on the home screen.

Minecraft Bedrock play homepage

2. Then, click the “Create New” button in the “Worlds” tab.

Create New world in MC Beta

3. Here, within the game section, turn on the “Activate Cheats” toggle in the cheats section, and then click on the “Create” button. Also, make sure to change your game mode to “Creative”. You can edit these game settings within your existing worlds too.

Create cheats enabled world in Minecraft Bedrock

4. Once you are in your world, press the “T” key or your platform’s dedicated chat button. Then within the chat, enter the following command and press enter.

/give @s minecraft:command_block

Minecraft commands are case-sensitive. Make sure to take special notice of the capitalization of the letters while typing.

How to Get and Use a Command Block in Minecraft

Get a Command Block in MCPE (Android & iOS)

Thanks to Minecraft’s inclusivity, you can get command blocks on portable consoles like Nintendo Switch. But if you are running MCPE (Minecraft Pocket Edition) on Android, iOS, or iPadOS, the steps might look slightly different. Let’s see how different they are.

1. First, open your Minecraft app and tap on the “play” button.

MCPE Homescreen with play button highlighted

2. Then tap on the “Create New” button within the worlds menu. You can also use an existing world.

Create New world in MC Beta

3. In the world’s game settings, make sure to toggle on the “Activate Cheats” button. You can even enable this option in existing worlds via the pause menu. Also, while you are at it, make sure that the world’s game mode is set to “creative”.

Activate Cheats on Bedrock

4. Finally, in your cheats enabled Minecraft world, tap on the chat icon located at the top of your screen.

MCPE Chat Icon

5. Then, type the following command in the chatbox and hit the send button.

/give @p minecraft:command_block

This command is case-sensitive. So, copy-pasting might be an easier way to enter it.

Summon Command Block in MCPE

How to Place and Use Command Block in Minecraft

Due to its powerful impacts, players can’t use command blocks in survival mode. So, we first need to make sure our world is in the creative game mode. Though, on multiplayer servers, you also need OP permissions to use command blocks.

With that said, you need to run the following command to change your game mode to creative:

/gamemode creative

Then, you can just look at another block and place the command block by right-clicking or using the secondary action key. Now that you know how to get a command block in Minecraft, let’s go over its UI to understand how to use it on Java and Bedrock editions.

Command Block UI on Minecraft Java and Bedrock

UI of Command Block in Java
UI of Command Block in Java Minecraft

The command block offers the same options in both Java and Bedrock editions. However, its UI varies slightly across the two editions. So, let’s briefly go over the options you get access to:

  • Command Input: Here, you can enter the various in-game commands that Minecraft supports.
  • Block Type: This option allows you to set and change the command block’s type from the default – “impulse” to “repeat” or “chain”.
  • Condition: If a command block is conditional, it only runs a command if the previous command is successfully executed.
  • Redstone: If you want to use the command block in a Redstone machine, you can use this option to make it run only with Redstone power.

Exclusive Options

Command Block UI for Bedrock
Command Block UI for Bedrock

The command block on the Bedrock edition has some additional options beyond the regular ones. Here’s what each of them means:

  • Execute on First Tick‌: This option ensures that the command on the repeat block gets executed as soon as the block is activated. There is no time delay.
  • Delay in Ticks‌: On a repeat or chain command block, this option specifies the time delay before a command gets executed. But on a repeat command block, it specifies a delay between each repeated command execution.
  • Hover Note‌: This comparatively simple option allows you to name each command block. Though, you can also use this for message commands to display the name of the sender in the chat.
comment Comments 3
  • 4556 says:


  • Darren Smerald says:

    I love Minecraft and building pretend places.
    I hope to meet friends there

  • Musa says:

    Can I download Minecraft

Leave a Reply