/fill
Place a whole rectangle of blocks at once - instant walls and floors.
Overview
What is the /fill command?
The /fill command places, replaces or clears blocks across a 3D cuboid between two corners — building walls, clearing huge areas, or laying foundations in an instant. Modes like replace, outline, hollow, keep and destroy give fine control over what changes.
It's a creative-mode powerhouse and the fastest way to move thousands of blocks without WorldEdit.
When to use it: Use /fill to place or clear large rectangular areas of blocks at once — walls, platforms, clearing land.
At a glance
Syntax
/fill <from> <to> <block>See it
What it does
Anatomy
Every part, explained
- 1
CommandRequired/fillFills the box between two corners.
- 2
FromRequired<from>First corner, e.g. ~ ~ ~.
- 3
ToRequired<to>Opposite corner, e.g. ~5 ~5 ~5.
- 4
BlockRequired<block>What to fill with. Use 'air' to delete.
Your turn
Try it yourself
Copy & paste
Examples
/fill ~ ~ ~ ~5 ~5 ~5 stoneA 6×6×6 cube of stone.
/fill ~-2 ~ ~-2 ~2 ~ ~2 glassA flat glass platform.
/fill ~ ~ ~ ~5 ~5 ~5 airErase a region into thin air.
Avoid these
Common mistakes
/fill ~ ~ ~ stone/fill ~ ~ ~ ~5 ~5 ~5 stoneYou need two corners (six coords) before the block.
/fill ~ ~ ~ ~50 ~50 ~50 stone/fill ~ ~ ~ ~30 ~30 ~30 stoneFill caps at 32,768 blocks per command.
Good to know
Frequently asked questions
- How do you fill an area with blocks?
- Run /fill <x1 y1 z1> <x2 y2 z2> <block>, e.g. /fill ~ ~ ~ ~10 ~5 ~10 stone fills that box with stone.
- How do you clear an area with /fill?
- Fill it with air: /fill <pos1> <pos2> air removes every block in the region.
- How do you replace only one block type?
- Add replace and the target, e.g. /fill <pos1> <pos2> stone replace dirt swaps only dirt for stone.
Keep going