Our news See more of us on Google? Add
Discord
World Java & Bedrock Requires cheats

Fill blocks

Fill huge areas with blocks or clear the ground with the /fill command.

Commands

/fill ~-10 ~-1 ~-10 ~10 ~-1 ~10 minecraft:stone

Creates a 21x21 stone platform under your feet

/fill ~-5 ~ ~-5 ~5 ~10 ~5 minecraft:air

Clears an 11x11x11 cube around you

/fill ~-10 ~-3 ~-10 ~10 ~-1 ~10 minecraft:diamond_block hollow

Builds a hollow structure out of blocks of diamond

/fill ~-5 ~ ~-5 ~5 ~4 ~5 minecraft:glass replace

Replaces everything in the area with glass

How it works

The /fill command fills a rectangular area (up to 32,768 blocks in Java Edition) with the block of your choice. The syntax is /fill X1 Y1 Z1 X2 Y2 Z2 block [mode]. The modes are replace (replaces every block), hollow (makes a hollow box with solid walls), outline (fills only the walls and leaves the inside untouched), keep (fills only air and doesn't overwrite existing blocks) and destroy (breaks the existing blocks and drops them as items). Running /fill with air is a quick way to clear the ground: it removes every block in the area. The command is invaluable for building on creative servers, setting up PvP arenas and preparing terrain. On servers with WorldEdit, //set does the same job, but /fill works in vanilla Minecraft without any plugins.

Practical tips

1

Up to 32,768 blocks per command (Java): for bigger areas, use several commands.

2

The 'hollow' mode creates a hollow structure, which is perfect for building quick houses.

3

The 'keep' mode fills only air, so it doesn't overwrite existing blocks.

4

F3 shows your coordinates: write down the two corners before you type the command.

Details

Category World
Edition Java & Bedrock
Requires cheats Yes
Number of commands 4
Tags
fillfillingblocksbuildingclearing

Related cheats

World Java & Bedrock

World seed

/seed
World Java & Bedrock

Find a structure

/locate structure minecraft:village_plains
World Java & Bedrock

Clone builds

/clone ~-10 ~-1 ~-10 ~10 ~10 ~10 ~20 ~-1 ~-10
Survival Java & Bedrock

Invincibility (god mode)

/gamemode creative