Skip to content

Modify Block State Property

Modifies the state property of a block.

Type ID: kaya:modify_block_state_property

Format

Field Type Default Description
property String Provider The state property of the block to modify.
block Block Provider The block to modify its state property of.
value String Provider optional If specified, the value of the state property will be set to this value.
cycle Boolean Provider optional If specified, the value of the state property will be cycled.
Warning

Only one of value or cycle fields must be present! If both or none are present, an error will be thrown.

Example

{
    "type": "kaya:modify_block_state_property",
    "property": "axis",
    "block": "used_block",
    "cycle": true
}

This example will cycle the axis state property of the block provided by the kaya:used_block context parameter, essentially rotating the block.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.