Mechanic: Set Block Type
Change blocktype at target location.
Attributes
Attribute | Aliases | Description | Default Value |
---|---|---|---|
material | m | The material for the block to be set to | DIRT |
data | md | Material data value. | 0 |
age | a | Sets the age of ageable blocks. If applied to sapplings, it instead sets the growth stage of the sappling. | 0 |
waterlogged | Whether or not the block is inside water | false | |
blockface | bf | The blockface the block will use | NORTH |
attachedface | af | The face of the block it's placed on | WALL |
axis | Orientation of the block | Y | |
bisectedhalf | bhalf | The half of a vertically bisected block | TOP |
slabtype | sb | Represents what the state of the slab will be | BOTTOM |
stairshape | shape | The shape of the stair block | STRAIGHT |
As of build 4018/4019 you can now setblock mmoitems custom blocks. An example is below. It would set the targetlocation to the mmoitems block with the id of 50. The following attributes: age, attachedface, axis, blockface, slabtype, stairshape, waterlogged, will be ignored when using MMOITEM blocks.
Examples
SetBlockExample:
Skills:
- setblock{m=STONE;md=0} @selflocation
SetMMOItemsBlock:
Skills:
- setblock{m=mmoitems:50} @targetlocation