/fill
Command
Fills all or parts of a region with a specific block.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Fill with 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 name
, block id
, with an optional fill mode
.
Fill with replacement block name or block ID
/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
or block id
with a replacement block name
or block id
.
Fill with block state, optional fill mode
/fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block properties> replace [replaceTileName: Block] [replaceBlockStates: block properties]
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> replace [replaceTileName: Block] [replaceBlockStates: block properties]
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
.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for