/fill
Replaces all blocks in a cuboid region with the given block. The optional mode controls behavior on existing blocks: destroy drops items, hollow only fills the shell, keep skips non-air, outline only fills the edges, replace targets specific blocks.
What is /fill used for?
What /fill is for
Replaces every block in a rectangular (cuboid) region with a chosen block, with modes to hollow, outline, keep, replace, or destroy.
When to use /fill
Clear large areas instantly, lay foundations and walls, flood a region with water or lava, or swap one block type for another across a whole build.
Limits & tips
A single /fill is capped at 32,768 blocks — split bigger jobs into chunks. Use the 'replace' mode to target only specific blocks, and ~ coordinates to fill relative to where you stand.
Syntax
Parameters
- from
- block coords
- One corner of the cuboid.
- to
- block coords
- Opposite corner.
- block
- block ID
- What to fill with.
- modeoptional
- literal
- destroy / hollow / keep / outline / replace.
- replaceFilteroptional
- block ID
- With mode=replace, only replace this block.
Command builder
Configure the options below to generate a ready-to-paste /fill command.
A fill region is capped at 32,768 blocks.
Examples
Fill an 11×11×11 cube around you with stone.
Pave a 101×101 area with grass blocks at Y=64.
Carve a 7×4×7 hollow with drops.
Common questions
How do I clear a large area in Minecraft?
Use /fill <from> <to> minecraft:air. A single /fill is capped by the commandModificationBlockLimit gamerule (default 32,768 blocks). For bigger regions, split into multiple /fill calls or raise the gamerule.
Permission level
/fill requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.