/fill

Fills all or parts of a region with a specific block.

Operator (cheats on)Cheats must be onChecked on 1.26.66.1

Open the fill command generator →

Syntax

Exactly as the game prints it. <angle brackets> are required, [square brackets] are optional.

/fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block states> [oldBlockHandling: FillMode]
/fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block states> replace [replaceTileName: Block] [replaceBlockStates: block states]
/fill <from: x y z> <to: x y z> <tileName: Block> <tileData: int> replace [replaceTileName: Block] [replaceDataValue: int]
/fill <from: x y z> <to: x y z> <tileName: Block> [oldBlockHandling: FillMode]
/fill <from: x y z> <to: x y z> <tileName: Block> [tileData: int] [oldBlockHandling: FillMode]
/fill <from: x y z> <to: x y z> <tileName: Block> replace [replaceTileName: Block] [replaceBlockStates: block states]

Accepted values

FillMode

outlinehollowdestroykeep

What we found when testing

Notes from running this command on a real Bedrock Dedicated Server (1.26.66.1).

"Cannot place blocks outside of the world" also means the chunk is not loaded

From a command block or the server console, /fill fails with this message when the target chunks are not loaded, even though the coordinates are valid. Load the area with a ticking area, or run the command while a player is close by.

/tickingarea add circle 0 0 0 4 lab
/fill 0 -60 0 5 -60 5 gold_block

More from 9Minecraft

Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.