Skip to content
/craftcmd

Place a Command Block

Create a command block at your location for automation

⚠︎ Awaiting in-game verification for Java 26.2

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

Place one block at a specific spot

/setblock ~ ~ ~ stone

Instantly place a chest at a specific location

/setblock ~ ~ ~ chest
Place a Zombie Mob Spawner
Place a Zombie Mob Spawner Awaiting in-game verification
Java

Place a working mob spawner that continuously spawns zombies

/setblock ~ ~ ~ spawner{SpawnData:{entity:{id:"minecraft:zombie"}}}

Delete a region of blocks by filling it with air

/fill ~ ~ ~ ~10 ~10 ~10 air

Create a hollow room or box out of any block

/fill ~ ~ ~ ~10 ~6 ~10 stone hollow

Create a pool or lake by filling a region with water

/fill ~ ~ ~ ~10 ~ ~10 water