Minecraft /setblock Commands — Copy & Paste (2026)
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Place single blocks or clear whole regions with one line. These /setblock and /fill commands are copy-ready and verified for both Java and Bedrock.
Delete a region of blocks by filling it with air
/fill ~ ~ ~ ~10 ~10 ~10 airCreate a hollow room or box out of any block
/fill ~ ~ ~ ~10 ~6 ~10 stone hollowCreate a pool or lake by filling a region with water
/fill ~ ~ ~ ~10 ~ ~10 waterSwap every block of one type for another in a region
/fill ~ ~ ~ ~10 ~10 ~10 stone replace dirtCopy a region of blocks and paste it somewhere else
/clone ~-5 ~-5 ~-5 ~5 ~5 ~5 ~15 ~-5 ~-5Place a working mob spawner that continuously spawns zombies
/setblock ~ ~ ~ spawner{SpawnData:{entity:{id:"minecraft:zombie"}}}Delete all blocks in a large area quickly
/fill ~-10 ~-2 ~-10 ~10 ~10 ~10 airQuickly fill a region with water
/fill ~-5 ~ ~-5 ~5 ~3 ~5 waterBuild a hollow rectangular frame without solid interior
/fill ~-5 ~ ~-5 ~5 ~4 ~5 stone hollowChange all blocks of one type in a region to a different type
/fill ~-10 ~ ~-10 ~10 ~10 ~10 stone replace dirtCopy and paste a large area of blocks
/clone ~-5 ~ ~-5 ~5 ~5 ~5 ~20 ~ ~Create a command block at your location for automation
/setblock ~ ~1 ~ command_block[facing=up]{Command:"/say Hello"}