Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fills all or parts of a region with a specific block.
| Permission Level | Game Directors |
|---|---|
| Requires Cheats? | Yes |
Usage
Fill with block state, optional fill mode
/fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block properties> [oldBlockHandling: FillMode]
Fill a region from one position to another of a particular block state with an optional fill mode.
Fill, filter on block states, optional replace with tile name or block state
/fill <from: x y z> <to: x y z> <tileName: Block> [oldBlockHandling: FillMode]
Fill a region from one position to another of a particular block name, filtering on particular block states, and replacing with blocks using an optional replacement tile name and optional replacement block states.
Fill, filtering on block states, with replacement blocks and states
/fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block properties> replace [replaceTileName: Block] [replaceBlockStates: block properties]
Fill with replacement blocks and states
/fill <from: x y z> <to: x y z> <tileName: Block> replace [replaceTileName: Block] [replaceBlockStates: block properties]
Arguments
blockStates: block properties An array of block states.from: x y z: position A vector that specifies the location inx,y, andzcoordinates offloattype.oldBlockHandling: FillMode Old block handling fill modereplaceBlockStates: block properties Anarrayof block states to replace.replaceTileName: Block Anenumof the type of the blockidto replace in the fill region.tileName: Block Anenumof the blockidof the block to fill the region with.to: x y z: position Avectorthat specifies the location inx,y, andzcoordinates offloattype.
Enums
FillMode
An enum of type destroy, hollow, keep, outline, or replace.
destroy replaces all blocks in the fill region and removes existing blocks.
hollow replaces only the block on the outer edge with the specified block.
keep replaces only the air blocks in the fill version.
outline replaces only inner blocks on the outer edge with the specified block.
replace replaces all blocks in teh fill region with the specified block without dropping blocks.
Values
outlineoutlinereplaces only inner blocks on the outer edge with the specified blockhollowhollowreplaces only the block on the outer edge with the specified blockdestroydestroyreplaces all blocks in the fill region and removes existing blockskeepkeepreplaces only the air blocks in the fill version