Minecraft /fill command

Java EditionBedrock EditionSince 1.8 (14w03a)

Quick answer: Fills a region of the world with a block, or replaces blocks in it. Syntax: /fill <from> <to> <block> [mode]

/fill places blocks in a rectangular volume between two corner coordinates. Modes control what happens to existing blocks: replace (default), destroy, hollow, keep, outline - and the replace filter lets you swap one block for another. Java Edition limits a single fill to 32,768 blocks by default.

Syntax

EditionSyntax
Java/fill <from> <to> <block> [mode]
Bedrock/fill <from: x y z> <to: x y z> <tileName: Block> [fillMode: FillMode]

Targets / arguments: Two corners (x y z) and a block ID. Requires: Cheats enabled / operator level 2.

Examples

/fill 0 64 0 10 64 10 minecraft:stone

Fill an 11x11 platform with stone

/fill ~-5 ~-1 ~-5 ~5 ~3 ~5 minecraft:air

Clear a space around you

/fill 0 64 0 20 70 20 minecraft:glass 0 hollow

Build a hollow glass box (Bedrock syntax)

Tips

Related commands

/clone/setblock/fillbiome