News
Game
Guides
Downloads
Versions
Command Block
Block

Command Block block in Minecraft

Present since 1.4.2 or earlier Stack size: 64

The Command Block runs a game command automatically, for map makers and server admins. This is the impulse type, with an orange casing: it runs its command once per activation.

It cannot be broken in Survival.

What it does

Command blocks cannot be crafted or broken in survival: you get them with the /give command, in creative mode with operator rights, and a server must allow them in its settings. Open one to type any command, such as a teleport, a title or a scoreboard change.

There are three types. An impulse block runs its command once each time it is activated, a repeating block runs it every game tick while active, and a chain block runs right after the block pointing into it. Each can be set to need redstone or to stay always active, and to be conditional, running only if the previous block in the chain succeeded.

A Redstone Comparator reads whether the last command succeeded, which makes command blocks the backbone of adventure maps and minigames.

How to craft

This item has no crafting recipe.

How Command Block connects

2 links · from the 26.3 game data

Block states

facingnorth · east · south · west · up · down
conditionaltrue · false

Tags

#minecraft:blocks_dolphin_jump#minecraft:blocks_fluid_flow#minecraft:blocks_lava_fire_spread#minecraft:blocks_motion#minecraft:blocks_motion_in_heightmap#minecraft:blocks_motion_in_heightmap_no_leaves#minecraft:blocks_motion_no_leaves#minecraft:causes_suffocation#minecraft:dragon_immune#minecraft:entities_can_teleport_to#minecraft:ice_melts_when_destroyed_above#minecraft:wither_immune

Command Block · FAQ

What is Command Block used for in Minecraft?

It runs commands automatically for maps and servers.

Can you break Command Block?

Not in Survival: its hardness is -1, so no tool can mine it. Its blast resistance (3,600,000) also stops explosions.