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
, andz
coordinates offloat
type.oldBlockHandling
: FillMode Old block handling fill modereplaceBlockStates
: block properties Anarray
of block states to replace.replaceTileName
: Block Anenum
of the type of the blockid
to replace in the fill region.tileName
: Block Anenum
of the blockid
of the block to fill the region with.to: x y z
: position Avector
that specifies the location inx
,y
, andz
coordinates offloat
type.
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
outline
outline
replaces only inner blocks on the outer edge with the specified blockhollow
hollow
replaces only the block on the outer edge with the specified blockdestroy
destroy
replaces all blocks in the fill region and removes existing blockskeep
keep
replaces only the air blocks in the fill version