Command Block
Block

Command Block

Namespaced ID
minecraft:command_block
Legacy numeric ID
137(1.8 & earlier)
Stack size
64
Edition
Java & Bedrock

/give command

Run in chat or a command block. Replace @p with a player name to target someone specific.

Command builder

Set the count, custom name, lore, and enchantments to generate a ready-to-paste /give command for Command Block.

Shown above the item in the inventory.
Italic text shown below the item name. One line per row.
1 compatible with Command Block.

Component syntax for Minecraft 1.21.8.

Block properties

Hardness
-1
Blast resistance
3600000
Material
default
Diggable
No
Transparent
No
Light emitted
0 / 15
Light filtered
15 / 15
Block state IDs
8690 – 8701

Across versions

Legacy numeric ID
137 (pre-1.13, from 1.8)
Modern ID (1.13+)
minecraft:command_block (numeric IDs were removed in 1.13 — not usable in commands)
Editions
Java & Bedrock

Browse the full item list for a specific version:

About Command Block

What is the Minecraft ID for Command Block?

The namespaced ID is minecraft:command_block, used in the /give command: /give @p minecraft:command_block 1. In legacy versions before 1.13, Command Block used the numeric ID 137. Numeric item IDs were removed in the 1.13 "Flattening" and no longer work in modern commands.