/fill
Fills a region between two coordinates with a specified block. Supports various fill modes and optional filtering.
Syntax
/fill <from> <to> <block> [destroy|hollow|keep|outline|replace] [<filter>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| from | block_pos | Required | The first corner of the fill region. |
| to | block_pos | Required | The second corner of the fill region. |
| block | block_state | Required | The block to fill the region with. |
| mode | literal | Optional | destroy = drops items; hollow = fill outer shell only, inside becomes air; keep = only replace air; outline = fill outer shell only; replace = replace with optional filter. |
| filter | block_predicate | Optional | When using replace mode, only replace blocks matching this filter. |
Examples
/fill ~ ~ ~ ~10 ~10 ~10 stoneFills an 11x11x11 region starting from your position with stone.
/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 oak_planks replace grass_blockReplaces all grass blocks with oak planks in a flat 11x1x11 area below you.
/fill 0 60 0 20 70 20 air hollowCreates a hollow air box (effectively a room) from 0,60,0 to 20,70,20.
Common Mistakes
- Exceeding the 32768-block fill limit, the region cannot contain more than 32768 blocks.
- Confusing 'hollow' and 'outline', hollow fills the inside with air while outline leaves the inside untouched.
Notes
The maximum fill volume is 32768 blocks (e.g., 32x32x32). Larger operations must be done in multiple commands. Hollow mode replaces interior blocks with air; outline does not.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting