How to get a command-block in Minecraft to automate your world


William Antonelli Oct. 8, 2021, 6:30 PM

In Minecraft, command blocks can’t be crafted or found. Mojang

To obtain a command-line in your chat program, you can use a specific chat command Minecraft world.
You’ll need to have both Cheats and Creative Mode enabled in your Minecraft world to obtain a command block.
After summoning it, you can change the way your command blocks work.

Visit Insider’s Tech Reference library for more stories.

Minecraft is a complex and difficult game. On the surface, it just looks like a big Lego simulator – but dig deep enough, and you can build sprawling rail systems, paint pictures, and even program in-game computers.

Command blocks are one example. Redstone powers command blocks, which allow you to automate your world and control players. Server rules.

But unlike other items, you can’t find command blocks out in the world, or in the Full listYou can find many items. Instead, you’ll need to spawn it into the game using cheats.

Here’s how to get a command block in Minecraft, using either Java or Bedrock edition.

How to get a Minecraft command blocks

The Java and Bedrock methods for obtaining command blocks are the same.

1. Firstly, make sure that your world or Realms server has cheats turned on, and that you’re playing in Creative Mode.

Both Creative Mode (and cheats), turn on Mojang; William Antonelli/Insider

2. To open the chatbox, press T on the keyboard or the right-hand D-pad button on a controller.

3. Type:

/give [your username] minecraft:command_block

In place of “[your username],”Enter your Minecraft username.

A Minecraft screenshot where the player has entered a command into the chat box.
You can use their names to give the command blocks to another player. Mojang; William Antonelli/Insider

4. The command block will be added to your inventory. While it’s in your hand, you can place it down on any solid surface.

A command block in Minecraft.
You’ll be given an infinite amount of command blocks. Mojang; William Antonelli/Insider

Use the command-block

Once you’ve placed your command block, you can set the block up with codes so it performs automatic tasks. These tasks include giving out items to players and killing enemy spawners.

1. Select the command block you wish to place.

2. In the menu that opens, you’ll have a few options. The first option allows you to choose how often the command block should be run. ImpulseThe command will run once, and then it will be stopped. Repeat/CurrentThe command will continue indefinitely. ChainAny connected command block will need to be run before it can.

Quick tipRedstone circuits are a way to connect multiple command blocks together.

3. The second option is ConditionalOr Unconditional, determines whether the command block that is related must be run successfully in order for this block’s to run.

4. The third option lets you choose whether the command block can run on its own – Always Active – or Redstone is essentialIt will power it.

5. Finally, type your command into the text box. For example, if you want to kill every creeper in the area, you’ll type:

/kill @e[type=minecraft:creeper]

Here’s a list of common codes.

The command block settings menu in Minecraft.
Your command block should be set-up with an action and conditions. Mojang; William Antonelli/Insider

6. When you’re ready for the command block to start running, click Done.

How to install Minecraft Forge and get access to thousands of new Minecraft modsHow to get a Minecraft cape without modsHow to install OptiFine to greatly improve your Minecraft experience ‘Minecraft’s’ graphics and add new featuresHow to make an End Portal in ‘Minecraft,’ and use it to find the game’s final boss


Continue reading

How to get a command-block in Minecraft to automate your world

Leave a Reply

Your email address will not be published. Required fields are marked *