Skip to main content

Bi-entity condition

Checks the relationship between the actor and the target. Swapping the two sides changes the meaning of some conditions.

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:actor_conditionLets the actor be checked by an entity condition.
saturn:target_conditionLets the target be checked by an entity condition.
saturn:bothChecks the same entity condition against both the actor and the target; matches only when both hold.
saturn:eitherChecks the same entity condition against the actor and the target; matches when at least one side holds.
saturn:mutualRequires the bi-entity condition to hold both in the original order and with the actor and target swapped.
saturn:undirectedMatches if the original order or the swapped actor and target order matches once.
saturn:jsCalls a callback registered by KubeJS and passes the params argument.
saturn:distanceChecks whether the distance between the actor and the target is within the maximum.
saturn:teamReads or checks the scoreboard team of the entity.
saturn:relationChecks whether the actor and the target are allied to each other.
saturn:can_seeChecks the line of sight between the two sides with a block and fluid ray.
saturn:riding_recursiveChecks multi-level riding relationships.
saturn:same_teamChecks whether the actor and the target are on the same team.
saturn:relative_rotationCompares the rotation difference between the actor and the target on the given axes.