Fill Command Generator

Fill an entire region with a block in one go — a hollow box or just the outline are options too

The area is the box between these two corners, up to 32,768 blocks per command.

Fill this in when you only want to change one block type — for example, turning dirt into stone without touching anything else.

Tips for using Fill

This tool does not yet support block states (such as stair orientation) or Bedrock data values.

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. Fill a 6x6x6 area with stone

The two corners define a box and every block inside it is filled, the corners included

/fill ~ ~ ~ ~5 ~5 ~5 minecraft:stone replace

What it does Will fill "Stone" in the area between ~ ~ ~ and ~5 ~5 ~5, replacing all existing blocks.

  • Relative coordinates are in use, so the block count can't be calculated ahead of time — be careful not to exceed 32,768 blocks per command

2. Build a hollow room

Hollow mode places only the shell and leaves the inside empty — a whole room’s walls in one command

/fill ~ ~ ~ ~10 ~5 ~10 minecraft:oak_planks hollow

What it does Will fill "Oak Planks" in the area between ~ ~ ~ and ~10 ~5 ~10, creating a hollow box (the inside becomes air).

  • Relative coordinates are in use, so the block count can't be calculated ahead of time — be careful not to exceed 32,768 blocks per command

3. Clear an area to air

Filling with air is how you wipe a whole area — double-check the coordinates, there is no undo

/fill ~ ~ ~ ~15 ~10 ~15 minecraft:air replace

What it does Will fill "Air" in the area between ~ ~ ~ and ~15 ~10 ~15, replacing all existing blocks.

  • Relative coordinates are in use, so the block count can't be calculated ahead of time — be careful not to exceed 32,768 blocks per command

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Every version this tool supports produces the same result, so a command you copy works without version-specific edits

Java Edition 1.21.5 and up Java Edition 1.20.5 - 1.21.4 Java Edition 1.13 - 1.20.4 (legacy NBT) Bedrock Edition (stable)
/fill ~ ~ ~ ~5 ~5 ~5 minecraft:stone replace
  • Relative coordinates are in use, so the block count can't be calculated ahead of time — be careful not to exceed 32,768 blocks per command

Before you use these