Skip to main content

Damage condition

Checks the damage source, damage amount and related entities. Embedded in DamageCondition 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:jsCalls a callback registered by KubeJS and passes the params argument.
saturn:amount_rangeChecks whether the damage amount is between min and max, inclusive.
saturn:directnessChecks whether the damage is direct damage.
saturn:damage_typeChecks the type of the damage source.
saturn:damage_type_tagChecks whether the damage type belongs to the given tag.
saturn:fireChecks whether the damage source is fire damage.
saturn:magicChecks whether the damage source is magic damage.
saturn:projectileChecks whether the damage comes from a projectile matching the type or condition.