All commands
🧱
AdvancedJava Bedrock

/fill

Place a whole rectangle of blocks at once - instant walls and floors.

Overview

What is the /fill command?

The /fill command places, replaces or clears blocks across a 3D cuboid between two corners — building walls, clearing huge areas, or laying foundations in an instant. Modes like replace, outline, hollow, keep and destroy give fine control over what changes.

It's a creative-mode powerhouse and the fastest way to move thousands of blocks without WorldEdit.

When to use it: Use /fill to place or clear large rectangular areas of blocks at once — walls, platforms, clearing land.

At a glance

Syntax

Syntax
/fill <from> <to> <block>
commandtargetcoordsvaluerequiredoptional

See it

What it does

Fill a whole box at once

Anatomy

Every part, explained

  1. 1
    /fillCommandRequired

    Fills the box between two corners.

  2. 2
    <from>FromRequired

    First corner, e.g. ~ ~ ~.

  3. 3
    <to>ToRequired

    Opposite corner, e.g. ~5 ~5 ~5.

  4. 4
    <block>BlockRequired

    What to fill with. Use 'air' to delete.

Your turn

Try it yourself

Playground
8 tokens · press Enter to run

Copy & paste

Examples

/fill ~ ~ ~ ~5 ~5 ~5 stone

A 6×6×6 cube of stone.

/fill ~-2 ~ ~-2 ~2 ~ ~2 glass

A flat glass platform.

/fill ~ ~ ~ ~5 ~5 ~5 air

Erase a region into thin air.

Avoid these

Common mistakes

/fill ~ ~ ~ stone
/fill ~ ~ ~ ~5 ~5 ~5 stone

You need two corners (six coords) before the block.

/fill ~ ~ ~ ~50 ~50 ~50 stone
/fill ~ ~ ~ ~30 ~30 ~30 stone

Fill caps at 32,768 blocks per command.

Good to know

Frequently asked questions

How do you fill an area with blocks?
Run /fill <x1 y1 z1> <x2 y2 z2> <block>, e.g. /fill ~ ~ ~ ~10 ~5 ~10 stone fills that box with stone.
How do you clear an area with /fill?
Fill it with air: /fill <pos1> <pos2> air removes every block in the region.
How do you replace only one block type?
Add replace and the target, e.g. /fill <pos1> <pos2> stone replace dirt swaps only dirt for stone.

Keep going

Related commands