blockData
The block data containing additional state information.
This property allows you to access and modify block-specific data such as rotation, waterlogging, orientation, etc.
Example:
blockEditor {
type = Material.STAIRS
blockData = (blockData as Stairs).apply {
half = Bisected.Half.TOP
facing = BlockFace.EAST
}
}Content copied to clipboard