Block condition
Checks the block or environment at the context position. Embedded in BlockCondition fields.
| Type | Purpose |
|---|---|
saturn:always | The condition is always true. |
saturn:never | The condition is always false. |
saturn:and | Matches only when every sub-condition holds. |
saturn:or | Matches when any sub-condition holds. |
saturn:not | Inverts the match result of the sub-condition. |
saturn:chance | Decides whether the check succeeds based on a given chance. |
saturn:offset | Moves the block context by the given offset before checking or running the child. |
saturn:js | Calls a callback registered by KubeJS and passes the params argument. |
saturn:block_id | Checks whether the block at the current position is the given type. |
saturn:block_tag | Checks whether the block belongs to the given tag. |
saturn:biome_tag | Checks whether the biome at the current position belongs to the given tag. |
saturn:hardness | Compares the hardness of the context block. |
saturn:height | Compares the Y coordinate of the block position. |
saturn:light_level | Compares the light level of the given light layer. |
saturn:slipperiness | Compares the slipperiness of the block. |
saturn:blast_resistance | Compares the blast resistance of the block. |
saturn:movement_blocking | Checks whether the block blocks movement. |
saturn:adjacent | Counts how many adjacent positions satisfy a block condition. |