Skip to main content

/fill

Fills a region between two coordinates with a specified block. Supports various fill modes and optional filtering.

Category
World
Permission Level
Game Master
Version Added
1.0

Syntax

/fill <from> <to> <block> [destroy|hollow|keep|outline|replace] [<filter>]

Parameters

NameTypeRequiredDescription
fromblock_posRequiredThe first corner of the fill region.
toblock_posRequiredThe second corner of the fill region.
blockblock_stateRequiredThe block to fill the region with.
modeliteralOptionaldestroy = drops items; hollow = fill outer shell only, inside becomes air; keep = only replace air; outline = fill outer shell only; replace = replace with optional filter.
filterblock_predicateOptionalWhen using replace mode, only replace blocks matching this filter.

Examples

/fill ~ ~ ~ ~10 ~10 ~10 stone

Fills an 11x11x11 region starting from your position with stone.

/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 oak_planks replace grass_block

Replaces all grass blocks with oak planks in a flat 11x1x11 area below you.

/fill 0 60 0 20 70 20 air hollow

Creates a hollow air box (effectively a room) from 0,60,0 to 20,70,20.

Common Mistakes

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