Skip to content
[/craft]

Fill Command Builder

Build a /fill command to place or clear blocks in a region. Set two corner coordinates, choose a block and fill mode — get the syntax for Java or Bedrock Minecraft.

Commands update instantly when you switch.

Quick templates

Coordinates

From

X
Y
Z

To

X
Y
Z

Use ~ for relative, ^ for local (facing) coordinates. Diagonally opposite corners — order doesn't matter.

Use any valid block ID. Add states with brackets: oak_stairs[facing=north]

Replaces every block in the region

E.g. dirt — only those blocks inside the region will be swapped.

Java and modern Bedrock (1.20+) share the same /fill syntax. Bedrock caps fill volume at 32,768 blocks per command — split large regions into separate fills.

Your command

/fill ~ ~ ~ ~10 ~5 ~10 stone

Example commands

10×10 stone floor at your feet

Java
/fill ~-5 ~ ~-5 ~5 ~ ~5 minecraft:stone
Bedrock
/fill ~-5 ~ ~-5 ~5 ~ ~5 stone

Clear a 5×5×5 area

Java
/fill ~-2 ~-2 ~-2 ~2 ~2 ~2 minecraft:air
Bedrock
/fill ~-2 ~-2 ~-2 ~2 ~2 ~2 air

Hollow glass box

Java
/fill ~-3 ~ ~-3 ~3 ~6 ~3 minecraft:glass hollow
Bedrock
/fill ~-3 ~ ~-3 ~3 ~6 ~3 glass hollow

Replace all dirt with grass

Java
/fill ~-10 ~ ~-10 ~10 ~10 ~10 minecraft:grass_block replace minecraft:dirt
Bedrock
/fill ~-10 ~ ~-10 ~10 ~10 ~10 grass replace dirt

Frequently asked questions

What fill modes are available?
destroy (breaks existing blocks with drops), hollow (fills only the outer shell, air inside), keep (fills only empty air blocks), outline (fills only the outermost layer, keeps interior), replace (replaces all blocks, or a specified block type).
Why does /fill say the area is too large?
Java Edition limits /fill to 32,768 blocks per command. Break the area into multiple smaller /fill commands, or use a datapack for larger regions.
Can /fill work with relative coordinates?
Yes — use ~ for relative coordinates (e.g. ~-5 ~ ~-5 ~5 ~ ~5). Both corners must be defined. The fill area is always the bounding box between the two corners, regardless of which one is larger.

Related