/fill Command in Minecraft Bedrock Edition

Fill a Region with Specific Blocks

Bedrock EditionWorld & BlocksPermission: Game DirectorsCheats: YesJava version →

The /fill command in Minecraft Bedrock Edition lets you fill all or parts of a selected region with a specific block. You define the area using two sets of coordinates that act as opposite corners of a 3D box.

Players use this command to speed up building projects, clear out large areas of land, or swap out one type of block for another using replacement filters and block states.

Syntax (3 forms)

  1. /fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block properties> [oldBlockHandling: FillMode]

    Fill with block state, optional fill mode

  2. /fill <from: x y z> <to: x y z> <tileName: Block> [oldBlockHandling: FillMode]

    Fill, filter on block states, optional replace with tile name or block state

  3. /fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block properties> replace [replaceTileName: Block] [replaceBlockStates: block properties]

    Fill, filtering on block states, with replacement blocks and states

Arguments

ArgumentTypeWhat it means
blockStatesblock propertiesAn array of block properties that defines the exact state or variant of the new block.
from: x y zpositionA vector of float coordinates (x, y, and z) that sets the starting corner of the fill region.
oldBlockHandlingFillModeThe fill mode that determines how the game handles blocks already inside the target region.
replaceBlockStatesblock propertiesAn array of block properties that filters which specific states of the existing block get replaced.
replaceTileNameBlockThe block ID of the existing block you want to target and replace inside the fill region.
tileNameBlockThe block ID of the new block you want to fill the region with.
to: x y zpositionA vector of float coordinates (x, y, and z) that sets the opposite ending corner of the fill region.

Examples

Tips

Common mistakes

Bedrock vs Java

In Minecraft Java Edition, the /fill command does not use a separate bracketed argument for block states; instead, you write the block and its states together before adding modes like /fill <from> <to> <block> destroy, hollow, or keep.

See /fill in Java Edition →

FAQ

What permission level do I need to use /fill in Bedrock Edition?

You need the Game Directors permission level and cheats must be enabled in the world.

How do I replace only one specific type of block in an area?

Use the replace argument followed by the replaceTileName of the block you want to swap out, and optionally add replaceBlockStates to filter by specific block properties.

What are blockStates in the Bedrock /fill command?

The blockStates argument is an array of block properties written in square brackets that lets you set specific variants or orientations for the blocks you are placing or replacing.

Related commands

/clone/daylock/difficulty/fog/gamerule/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather

More on 9Minecraft