About Command Block in Minecraft
Command Block is an advanced block that executes console commands when powered by redstone. It is only available in Creative mode or with cheats enabled.
Command Block Command Examples
- Give 1 to nearest player:
/give @p minecraft:command_block 1 - Give 1 to yourself:
/give @s minecraft:command_block 1 - Give to a specific player:
/give PlayerName minecraft:command_block 1 - Clear from inventory:
/clear @p minecraft:command_block
How to Get Command Block
Command Blocks are not obtained through normal Survival crafting. Players with the required permissions can use a give command, then configure the block with a command and redstone or execution settings.
- Make sure cheats or server permissions allow commands.
- Use the current command shown on this page to receive a Command Block.
- Place it, enter a command, and configure how it will run.
What Is Command Block Used For?
Redstone Dust
Use redstone to trigger a command block in a simple setup.
Lever
A manual lever is a straightforward test trigger.
Repeater
Use timing components when building command sequences.
Chain Commands
Combine command blocks carefully to automate map or server behavior.
Sources and Data Review
Item facts were reviewed for Java Edition 26.2 on .
