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)
Point 2 (opposite corner)
Block
Mode
hollow = walls + air inside, outline = walls only
Generated command
Paste it into the Minecraft chat (the T key) or a command block
Other commands
/give
Give an item to a player
/summon
Summon a mob or entity
/effect
Apply an effect to a player
/enchant
Enchant the item in hand
/gamemode
Change game mode
/tp
Teleport a player
/time
Change the time of day
/weather
Change the weather
/xp
Give experience to a player
/difficulty
Change world difficulty
/gamerule
Change world rules
/clear
Clear a player's inventory
/setblock
Place a block at coordinates
/spawnpoint
Set the spawn point
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.
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.
