How to Get a Command Block in Minecraft (You Can't Craft It)

If you've searched "how to make a command block in Minecraft," here's the honest answer upfront: you cannot craft a command block in survival mode. It doesn't appear in the crafting table recipe list, and it isn't available through normal gameplay progression. Instead, command blocks are obtained through a specific method that depends on your game mode and platform. Here's everything you need to know about how they work, how to get them, and what shapes your experience with them.

What Is a Command Block?

A command block is a special in-game block that executes server or game commands automatically when triggered. It's primarily a tool for map makers, server administrators, and Minecraft educators who want to build automated systems — custom minigames, adventure maps, cutscenes, teleportation systems, and more — without writing external plugins or mods.

Command blocks support nearly any command you can type into the chat console, but they run that command hands-free, on a trigger, on a loop, or in a chain with other blocks.

There are three types:

TypeColorBehavior
ImpulseOrangeRuns once when triggered
ChainGreenRuns after the previous block in a chain fires
RepeatPurpleRuns every game tick while powered

How to Get a Command Block 🎮

Since command blocks can't be crafted, there's only one way to obtain them: the /give command.

Step 1 — Enable Cheats

You must have cheats enabled in your world. In Java Edition, this is set when creating the world. In Bedrock Edition, it's toggled in world settings. On a multiplayer server, you need operator (op) status.

Step 2 — Switch to Creative Mode (or Use Op Permissions)

Command blocks can only be placed and used in Creative mode in Java Edition. Even if you obtain one in survival, you won't be able to interact with its interface.

In Bedrock Edition, you also need "Activate Cheats" turned on in world settings.

Step 3 — Type the Give Command

Open your chat window (default: T on Java, the chat icon on Bedrock) and enter:

Java Edition:

/give @p command_block 

Bedrock Edition:

/give @p command_block 1 

This gives one command block to the nearest player (@p). You can replace @p with @s (yourself) or a specific player username.

To get the other types:

  • /give @p chain_command_block — Chain (green)
  • /give @p repeating_command_block — Repeat (purple)

How to Use a Command Block After Placing It

Once placed, right-click (Java) or tap/interact (Bedrock) to open the command block interface. You'll see:

  • Command input field — where you type your command (e.g., /tp @a 0 64 0 to teleport all players)
  • Block type toggle — switch between Impulse, Chain, and Repeat
  • Condition toggle — set it to "Conditional" to only fire if the previous chain block succeeded
  • Redstone toggle — set to "Always Active" (runs without redstone) or "Needs Redstone" (requires a signal)

To trigger an Impulse block, apply a redstone signal — a button, lever, pressure plate, or redstone clock. Repeat blocks run continuously while powered.

Variables That Change How This Works for You

Not every setup is identical. A few factors meaningfully affect what you can do:

Java vs. Bedrock Edition — Some commands differ in syntax between editions. A command that works perfectly in Java may need adjustment for Bedrock. If you're following a tutorial, confirm it matches your edition.

Singleplayer vs. Multiplayer — On a server, you need operator permissions granted by the server owner. Some servers disable command blocks entirely for security or performance reasons.

Education Edition — Minecraft: Education Edition has its own permissions layer around command blocks, often managed at the classroom or institution level. 🏫

Game version — Command syntax has changed across major updates. A command block setup built in an older version may not behave as expected in a newer one. Commands referencing block IDs, entity names, or NBT data are especially sensitive to version changes.

World type and existing rules — Some commands interact with world-specific settings like gamerule. Your world's existing configuration may limit or change command output.

What Command Blocks Are (and Aren't) Useful For

Command blocks are powerful in the right context — building self-contained maps, running automated game events, or teaching coding logic to students. They're not intended for standard survival gameplay, which is why they're gated behind creative mode and cheats.

For players looking to modify survival worlds significantly, datapacks (Java Edition) or behavior packs (Bedrock Edition) are often a more appropriate and stable route than relying on command blocks.

Whether command blocks are the right tool for what you're trying to build depends on the complexity of your project, the edition you're playing, and whether you're working alone or on a shared server — and that combination looks different for every player.