[world_blocks_commands]

How to Use the Fill Command Generator

  1. Enter Corner 1 and Corner 2 – any two opposite corners of the box you want filled, in any order. Coordinates accept ~ relative values.
  2. Type or pick the block id to fill with, such as minecraft:stone or minecraft:glass.
  3. Choose a mode: replace, destroy, keep, hollow, or outline.
  4. Copy the generated /fill command into a command block or the console.

Command Syntax Reference

/fill <from> <to> <block> [replace|destroy|keep|hollow|outline]

/fill sets every block in the cuboid region between the two given corners (inclusive) to the specified block. The two corners can be given in either order along each axis – the game sorts out which is minimum and which is maximum. The mode argument decides how the interior and shell of that region are treated:

  • replace (default) – overwrites every block in the region unconditionally.
  • destroy – breaks each existing block as if mined (dropping items, playing break effects) before placing the fill block.
  • keep – only fills positions that are currently air, leaving everything else untouched.
  • hollow – fills only the outer shell (the six faces) of the region with the given block and replaces the entire interior with air, useful for quickly carving out a room.
  • outline – fills only the outer shell with the given block but leaves the interior exactly as it was, useful for building a shell around existing terrain or structures without disturbing what’s inside.

A single /fill is limited to 32,768 blocks (a 32x32x32 region) by default – larger regions need to be split into multiple fill commands, which is exactly what large-scale fill-based builds (like automated farms or arenas) do in a repeating sequence of command blocks.

Frequently Asked Questions

What’s the difference between hollow and outline?

hollow actively empties the interior by replacing it with air, so any existing blocks inside the region are destroyed. outline only touches the shell and leaves the interior exactly as it was – if there was a mountain inside your region, outline keeps the mountain and just wraps a shell around it, while hollow would hollow the mountain out.

Can I fill with air to clear a region?

Yes – /fill <from> <to> minecraft:air is the standard way to clear a cuboid region, and it’s commonly combined with destroy mode first if you also want the removed blocks to drop as items.

Why did my /fill command fail on a huge region?

Vanilla enforces a 32,768-block limit per /fill execution (configurable via the commandModificationBlockLimit game rule on some versions/server setups). Regions larger than the limit need to be broken into smaller sequential fill commands, each covering a slice of the total volume.

Does /fill affect block entities like chest contents?

Placing a container block with /fill creates it empty – any existing container that gets overwritten loses its contents (they do not drop unless you used destroy mode). Filling doesn’t copy inventories; for that, /clone is the right tool since it preserves block entity data.

Related Tools