/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.
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.
/fill ~ ~ ~ ~5 ~5 ~5 minecraft:stoneExamples
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.