Skip to content
Minecraft Command List

Minecraft /setblock Commands — Copy & Paste (2026)

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

Place single blocks or clear whole regions with one line. These /setblock and /fill commands are copy-ready and verified for both Java and Bedrock.

Place one block at a specific spot

/setblock ~ ~ ~ stone

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

Swap every block of one type for another in a region

/fill ~ ~ ~ ~10 ~10 ~10 stone replace dirt

Instantly place a chest at a specific location

/setblock ~ ~ ~ chest

Copy a region of blocks and paste it somewhere else

/clone ~-5 ~-5 ~-5 ~5 ~5 ~5 ~15 ~-5 ~-5
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"}}}

Pack a region with TNT blocks ready to detonate

/fill ~ ~ ~ ~5 ~5 ~5 tnt
Clear a Region with Air
Clear a Region with Air Awaiting in-game verification
Both

Delete all blocks in a large area quickly

/fill ~-10 ~-2 ~-10 ~10 ~10 ~10 air
Fill Area with Water
Fill Area with Water Awaiting in-game verification
Both

Quickly fill a region with water

/fill ~-5 ~ ~-5 ~5 ~3 ~5 water
Create Hollow Box (Outline Only)
Create Hollow Box (Outline Only) Awaiting in-game verification
Both

Build a hollow rectangular frame without solid interior

/fill ~-5 ~ ~-5 ~5 ~4 ~5 stone hollow
Replace One Block Type with Another
Replace One Block Type with Another Awaiting in-game verification
Both

Change all blocks of one type in a region to a different type

/fill ~-10 ~ ~-10 ~10 ~10 ~10 stone replace dirt
Clone a Structure or Region
Clone a Structure or Region Awaiting in-game verification
Both

Copy and paste a large area of blocks

/clone ~-5 ~ ~-5 ~5 ~5 ~5 ~20 ~ ~
Place a Command Block
Place a Command Block Awaiting in-game verification
Java

Create a command block at your location for automation

/setblock ~ ~1 ~ command_block[facing=up]{Command:"/say Hello"}