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.
Changes a block to another block.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Set block, block states
/setblock <position: x y z> <tileName: Block> <blockStates: block properties> [oldBlockHandling: SetBlockMode]
Set a block
in a position
using tile name
with optional block states
and old block handling
fill methods.
/setblock <position: x y z> <tileName: Block> [oldBlockHandling: SetBlockMode]
Arguments
blockStates
: block properties The block states from theenum
to use for the block to be set.oldBlockHandling
: SetBlockMode Anenum
of typedestroy
,hollow
,keep
,outline
, orreplace
. Default:replace
.position: x y z
: position Avector
[x y z] that defines the position of the block to change.tileName
: Block An block name from theenum
that specifies the new block.
Enums
SetBlockMode
Enum of Set Block Modes
Values
replace
Replacedestroy
Destroykeep
Keep