Place a Command Block
Create a command block at your location for automation
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Places a command block above you facing up. Modify the Command property to run different commands.
/setblock ~ ~1 ~ command_block[facing=up]{Command:"/say Hello"}63 characters
- Java: yes
- Bedrock: no
- Command block: no
- Needs cheats / OP: yes
How to use
- Java: open chat (T) and paste the command with your desired command inside.
- Press Enter — the command block appears.
- Right-click to edit and run commands.
Related commands
Set a Single Block
Place one block at a specific spot
Place a Chest
Instantly place a chest at a specific location
Place a Zombie Mob Spawner
Place a working mob spawner that continuously spawns zombies
Set Sculk Sensor Block
Place a sculk sensor for redstone detection
Place A Repeating Command Block
Create a repeating command block at your location
Place A Chain Command Block
Create a chain command block for sequential command execution