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
| Edition | Syntax |
|---|---|
| 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:stoneFill an 11x11 platform with stone
/fill ~-5 ~-1 ~-5 ~5 ~3 ~5 minecraft:airClear a space around you
/fill 0 64 0 20 70 20 minecraft:glass 0 hollowBuild a hollow glass box (Bedrock syntax)
Tips
- The default block limit (Java: commandModificationBlockLimit) is 32,768 - split big jobs into several fills.
- hollow fills only the outer shell; keep only fills air blocks; outline fills only the edges.
- To replace one block with another in Java: /fill x1 y1 z1 x2 y2 z2 stone replace dirt.