Fill Generator
Area
About the /fill generator
The /fill command sets every block in a rectangular region at once. It is how large structures are cleared, floors are laid and hollow rooms are built without placing anything by hand, and it is the single biggest time saver in map building.
How to use this generator
Define the two opposite corners of the region, choose the block and select a fill mode. The region is inclusive of both corners, so the block count is one larger per axis than the coordinate difference suggests.
Things worth knowing
- Vanilla limits a single fill to 32,768 blocks; larger areas have to be split into several commands.
- The hollow mode fills only the outer shell and replaces the interior with air, which is how rooms are made.
- The outline mode fills the shell but leaves the interior untouched.
- The replace mode with a filter changes only blocks matching that filter, which is the safe way to edit an existing build.
The generated command is produced entirely in your browser and nothing you enter is sent to EloTiers. Paste the result into the chat bar or a command block in your own world. If a command is rejected, check that the Minecraft version selected here matches the version you are actually running — the item and entity data format changed substantially in 1.20.5.
Worked examples
A solid floor
/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:stone_bricksLays an 11 by 11 floor of stone bricks one block under your feet, centred on you.
A hollow glass room
/fill ~ ~ ~ ~10 ~4 ~10 minecraft:glass hollowCreates a glass shell with an air interior. Both corners are included, so the room measures 11 blocks on each horizontal side and 5 high.
Replace only grass
/fill ~-10 ~-1 ~-10 ~10 ~-1 ~10 minecraft:dirt replace minecraft:grass_blockOnly grass blocks inside the region are turned into dirt. Everything else in the area stays as it is.
Frequently asked questions
Why does my fill command say too many blocks?
A single /fill may change at most 32,768 blocks. Split a larger area into several regions, each below that limit.
Are both corners part of the filled area?
Yes. The region is inclusive, so a fill from 0 to 4 on one axis covers five blocks, not four.
Can I undo a fill?
Vanilla Minecraft has no undo. Make a backup of the world or the region first, or use the replace mode with a filter so only the blocks you want are touched.