Skip to main content

Block condition

Checks the block or environment at the context position. Embedded in BlockCondition fields.

TypePurpose
saturn:alwaysThe condition is always true.
saturn:neverThe condition is always false.
saturn:andMatches only when every sub-condition holds.
saturn:orMatches when any sub-condition holds.
saturn:notInverts the match result of the sub-condition.
saturn:chanceDecides whether the check succeeds based on a given chance.
saturn:offsetMoves the block context by the given offset before checking or running the child.
saturn:jsCalls a callback registered by KubeJS and passes the params argument.
saturn:block_idChecks whether the block at the current position is the given type.
saturn:block_tagChecks whether the block belongs to the given tag.
saturn:biome_tagChecks whether the biome at the current position belongs to the given tag.
saturn:hardnessCompares the hardness of the context block.
saturn:heightCompares the Y coordinate of the block position.
saturn:light_levelCompares the light level of the given light layer.
saturn:slipperinessCompares the slipperiness of the block.
saturn:blast_resistanceCompares the blast resistance of the block.
saturn:movement_blockingChecks whether the block blocks movement.
saturn:adjacentCounts how many adjacent positions satisfy a block condition.