Skip to content
[/craft]
Place a Command Block

Place a Command Block

Create a command block at your location for automation

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Places 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

How to use

  1. Java: open chat (T) and paste the command with your desired command inside.
  2. Press Enter — the command block appears.
  3. Right-click to edit and run commands.

Related commands