How to fill an area with blocks — the /fill command

Generator /fill

Fill an area with blocks — adjust the parameters and copy the finished result

The /fill command fills a rectangular area with blocks. Set two corners and choose a block. Maximum 32768 blocks at once.

Point 1 (corner)

X
Y
Z

Point 2 (opposite corner)

X
Y
Z

Block

Mode

hollow = walls + air inside, outline = walls only

Generated command

>/fill ~ ~ ~ ~10 ~5 ~10 minecraft:stone replace

Paste it into the Minecraft chat (the T key) or a command block

How does /fill work?

The /fill command fills a rectangular area with blocks. Syntax: /fill <x1> <y1> <z1> <x2> <y2> <z2> <block> [mode]. The two points define opposite corners of the area. Maximum 32768 blocks at once.

Fill modes

replace — replaces all blocks. destroy — destruction with drops. keep — only into air. hollow — walls only (air inside). outline — walls only (leaves the inside untouched). replace <block> — replaces only the specified block.

Creating builds

fill + hollow creates empty rooms: /fill ~ ~ ~ ~10 ~5 ~10 stone hollow — a 10x5x10 stone room. Use outline for a frame without clearing the interior.

Clearing terrain

To clear terrain, fill the area with air: /fill <x1> <y1> <z1> <x2> <y2> <z2> air. For leveling — fill the lower part with stone and the upper part with air.

10% off with promo code

Looking for Minecraft server hosting?

Launch your server in a minute — one-click mod and plugin installation, DDoS protection, powerful hardware. Promo code PROMO10 gives 10% off any plan.

PROMO10
Copy
View plans