How to get a command block in minecraft
William Cox
Published Mar 31, 2026

There are other answers below:
IMPORTANT! Minecraft has changed since this was uploaded. Check out the updated version for 1.16 Java and Bedrock editions here:
Command blocks are, as the name suggests, blocks that automate commands. For example, players can type the “/give” command to automatically get an item, as seen in …
You can get a command block in your Minecraft Java or Bedrock world using cheats and a special chat command. Menu icon A vertical stack of three evenly spaced horizontal lines.
A Command Block is an item in Minecraft that allows players to program certain actions into their worlds. This enables you to craft unique experiences for those you share your world with. For …
In Minecraft Windows 10 Edition, the syntax to give a player a command block using the /give command is: /give
/setblock ~ ~ ~ minecraft:command_block. These are the only two ways to acquire a Command Block. If the player has already spawned one, they can use the pick block control, which will place it in …
Related Questions
How to give a player a command block in Minecraft?
Type give player command_block into the console. Make sure that you substitute your in-game name for “player” in the command. For example, if your in-game name is “potatoSkin”, you would enter give potatoSkin command_block here. Press ↵ Enter. Doing so will run the command and place a command block in your hand.
How do you make command blocks do a command continuously?
You can either put a red stone block to give it power forever or you can use redstone clocks to make command blocks do a command continuously as command blocks work on pulses. Thanks! How do I directly press my Minecraft command block?
How do I make a block in Minecraft?
The “slash” key should be in your computer’s keyboard; pressing it will bring up the command console at the bottom of the Minecraft screen. Type give player command_block into the console.
How to run game commands in Minecraft?
To run game commands in Minecraft, you have to turn cheats on in your world. In Minecraft Java Edition (PC/Mac), the syntax to give a player a command block using the /give command is: targets is the name of the player (or a target selector) that you wish to give the command block to.