How to use the Minecraft Fill Command Generator
- Enter two corners. Any two opposite corners work, in any order. The tool puts the smaller numbers first.
- Pick a block and a mode. Replace fills the whole region. Hollow makes a box with an air inside. Outline keeps only the shell and leaves the inside alone. Destroy drops the blocks it breaks, and Keep only fills empty space.
- Add a filter if needed. Tick the filter box to replace only one kind of block, for example turning every dirt block in the region into grass.
- Copy the commands. If the region is too big for one command, you get a short list. Run them in order, or put them in a function.
The block limit
One /fill can change at most 32,768 blocks by default, which is a 32 by 32 by 32 cube. The limit is the gamerule max_block_modifications in current versions. Older versions call it commandModificationBlockLimit. If you raise it, you can change the Blocks per command box on this page to match.
When a region is over the limit, the tool cuts it in half along its longest side, again and again, until every piece fits. For plain fills the pieces never overlap, so the result matches one big fill.
How hollow and outline are split
Cutting a hollow box into pieces would leave walls where the pieces meet. To avoid that, a hollow region that is too big is built from its six faces, followed by an air fill for the inside. An outline is the same without the air. Each face is split under the limit on its own.
Relative or exact coordinates
Exact numbers work from anywhere, which makes them better for the console and for functions. Relative coordinates start with a tilde and are measured from where the command runs. Use them in a command block, or stand on the spot that should count as zero. The Overworld runs from Y -64 to Y 319 in current versions, and blocks outside the world's height are not changed.
Frequently asked questions
What is the biggest area one /fill can cover?
32,768 blocks by default. A flat 181 by 181 area is just under it.
How do I fill a region larger than the limit?
Use the splitter on this page. It writes several commands that together cover the whole region.
What is the difference between hollow and outline?
Hollow also clears the inside to air. Outline leaves everything inside the box alone.
Can I replace only one block type?
Yes. Use Replace and tick Only replace one kind of block.
Does it work on Bedrock?
Bedrock has /fill too, but its limit and block states differ. This tool writes Java Edition syntax.
Can a fill undo itself?
No. Take a backup first if the area matters. There is no undo command.