Bi-entity condition
Checks the relationship between the actor and the target. Swapping the two sides changes the meaning of some conditions.
| 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:actor_condition | Lets the actor be checked by an entity condition. |
saturn:target_condition | Lets the target be checked by an entity condition. |
saturn:both | Checks the same entity condition against both the actor and the target; matches only when both hold. |
saturn:either | Checks the same entity condition against the actor and the target; matches when at least one side holds. |
saturn:mutual | Requires the bi-entity condition to hold both in the original order and with the actor and target swapped. |
saturn:undirected | Matches if the original order or the swapped actor and target order matches once. |
saturn:js | Calls a callback registered by KubeJS and passes the params argument. |
saturn:distance | Checks whether the distance between the actor and the target is within the maximum. |
saturn:team | Reads or checks the scoreboard team of the entity. |
saturn:relation | Checks whether the actor and the target are allied to each other. |
saturn:can_see | Checks the line of sight between the two sides with a block and fluid ray. |
saturn:riding_recursive | Checks multi-level riding relationships. |
saturn:same_team | Checks whether the actor and the target are on the same team. |
saturn:relative_rotation | Compares the rotation difference between the actor and the target on the given axes. |