Entity condition
Checks a single entity. The condition array means all conditions must hold; these conditions are not the same as the vanilla advancement JSON player predicate.
| 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:js | Calls a callback registered by KubeJS and passes the params argument. |
saturn:sneaking | Checks whether an entity is sneaking. |
saturn:has_ability | Checks whether an entity has the given ability. |
saturn:partner | Checks nearby entities within a range using a bi-entity condition. |
saturn:resource_compare | Checks whether the current value of the given resource reaches at least min. |
saturn:entity_tag | Checks whether the entity type belongs to the given tag. |
saturn:air | Reads or compares the remaining air of an entity. |
saturn:dimension | Checks the dimension an entity is in. |
saturn:entity_type | Checks whether an entity is of the given type. |
saturn:fall_distance | Compares the accumulated fall distance of an entity. |
saturn:glowing | Checks whether an entity is glowing. |
saturn:health | Reads or compares the current health of an entity. |
saturn:exposed_to_sky | Checks whether the position of an entity can see the sky. |
saturn:food_level | Compares the food level of a player. |
saturn:mob_effect | Checks whether an entity has the given status effect. |
saturn:on_block | Checks whether the block below the feet of an entity satisfies a block condition. |
saturn:time_of_day | Compares the day/night time of the context world. |
saturn:using_item | Checks whether an entity is using an item. |
saturn:brightness | Compares the brightness at the position of an entity. |
saturn:exposed_to_sun | Checks whether an entity is exposed to sunlight. |
saturn:experience_level | Compares the experience level of a player. |
saturn:experience_points | Compares the total experience points of a player. |
saturn:relative_health | Compares the ratio of the current health of an entity to its maximum health. |
saturn:saturation_level | Compares the food saturation of a player. |
saturn:team | Reads or checks the scoreboard team of an entity. |
saturn:attribute | Reads or compares the value of a specified attribute of an entity. |
saturn:block_collision | Checks whether the offset entity bounding box collides with blocks. |
saturn:can_have_effect | Checks whether an entity can receive the given status effect. |
saturn:gamemode | Checks the game mode of a player. |
saturn:passenger | Counts the direct passengers that satisfy a bi-entity condition and compares the count. |
saturn:attack_cooldown | Compares the attack charge progress of a player. |
saturn:equipped_item | Checks whether the item in the given equipment slot satisfies an item condition. |
saturn:main_hand_item | Checks whether the main hand item of an entity satisfies an item condition. |
saturn:in_block | Checks whether the block an entity is inside satisfies a condition. |
saturn:in_block_anywhere | Counts the blocks within the entity bounding box that satisfy a condition. |
saturn:scoreboard | Compares scores under the given scoreboard objective. |
saturn:riding | Checks whether the mount of an entity satisfies a bi-entity condition. |
saturn:riding_recursive | Checks multi-level riding relationships. |
saturn:passenger_recursive | Recursively counts the passengers that satisfy a condition. |
saturn:riding_root | Checks the root entity of the riding chain. |
saturn:ability_storage_toggle | Checks the toggle value of the given ability storage. |
saturn:ability_storage_timer | Checks the remaining duration of the ability timer. |
saturn:ability_storage_resource | Checks the resource value in the ability storage. |
saturn:ability_storage_target | Checks whether the ability has a locked target that satisfies the distance condition. |
saturn:ability_storage_charges | Checks the remaining charges of the ability. |
saturn:ability_storage_cooldown | Checks the current remaining cooldown duration of the ability. |