Skip to content
/SLASHPLAY

How to fill an area with blocks in Minecraft

Type /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:stone in chat as an operator to fill the box between two corners. Add hollow or replace for other modes.

fill

Covers a box between two corners with one block, with modes for hollow shapes, outlines and replacing one block type.

/fill <from> <to> <block> [destroy|hollow|keep|outline|replace [<filter>]|strict]

Examples

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

Makes an 11 by 11 stone floor under you.

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

Builds a hollow glass box.

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

Drains water around you.

Arguments

fromRequired
First corner coordinates.
toRequired
Opposite corner coordinates.
blockRequired
Block ID with optional states.
modeOptional
How to treat existing blocks. Defaults to replace.
filterOptional
After replace, only blocks matching this ID or #tag are changed.

What it does

Modes: replace (default, optionally only a filter block), destroy (drops the old blocks), hollow (walls with air inside), outline (walls, inside untouched), keep (only air) and strict (no block updates). The number of blocks per command is capped by the max_block_modifications game rule, so split very large areas into several commands.

Good to know

  • Needs operator permission level 2.
  • The whole area must be loaded.

Run it on your server

On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.

Your own
Minecraft server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.