/fill

Cheats / op 2Java 26.3

Fills an area with a block. Its basic form is /fill <from> <to> <block>; it has 12 syntax forms and 4 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
12
Arguments
4

/fill syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

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

/fill examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:stone
Builds an 11×11 stone floor under you.
/fill ~-3 ~ ~-3 ~3 ~3 ~3 minecraft:air replace minecraft:water
Drains water in a 7×4×7 area around you.

/fill arguments

What each argument expects, with the limits the game enforces.

/fill arguments
ArgumentExpectsLimits
<from>Block coordinates (x y z, ~ relative, ^ local)—
<to>Block coordinates (x y z, ~ relative, ^ local)—
<block>Block ID with optional [states]—
<filter>Block ID or #tag, with optional [states]—

Related commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Fills an area with a block. It has 12 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/fill FAQ (Java 26.3)

What does /fill do in Minecraft?

Fills an area with a block.

What is the syntax of /fill?

The basic form is /fill <from> <to> <block>. All forms are listed above.

What is an example of /fill?

/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:stone — Builds an 11×11 stone floor under you.

Do you need cheats for /fill?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).