All commands
🧱
Advanced

/fill

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

Try in Simulator

At a glance

Syntax

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

See it

What it does

Blocks fill the selected region

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.

Keep going

Related commands