/

/fill

op 2World

/fill sets every block in a box between two corners. The game caps a single fill at 32,768 blocks, which is a 32×32×32 cube. Anything larger is refused outright with “Too many blocks in the specified area”.

Commandready
23
/fill ~ ~ ~ ~ ~ ~ stone
Press C to copy
x
y
z

~ ~ ~whole blocks

~ is relative to where the command runs from

x
y
z

~ ~ ~whole blocks

~ is relative to where the command runs from

This block has no block states.

Block entity NBTchests, signs, spawners, command blocks
Presets
Empty — this argument will be left off.
optional

Examples

  • A stone platform
    /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 stone
  • Clear a room
    /fill ~-5 ~ ~-5 ~5 ~5 ~5 air
  • Swap one block for another
    /fill ~-10 ~-5 ~-10 ~10 ~5 ~10 stone replace dirt

Common questions about /fill

Why does it say "Too many blocks in the specified area"?

A /fill can cover at most 32,768 blocks. Split the region into several commands, or use /clone to copy a prepared structure instead.

How do I build a hollow box?

Use hollow, which fills the shell and clears the inside to air. outline does the same shell but leaves the interior untouched.

How do I replace only one kind of block?

Pick the replace mode and name the block to look for. /fill … stone replace dirt turns dirt into stone and leaves everything else alone.