Skip to main content

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.

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:sneakingChecks whether an entity is sneaking.
saturn:has_abilityChecks whether an entity has the given ability.
saturn:partnerChecks nearby entities within a range using a bi-entity condition.
saturn:resource_compareChecks whether the current value of the given resource reaches at least min.
saturn:entity_tagChecks whether the entity type belongs to the given tag.
saturn:airReads or compares the remaining air of an entity.
saturn:dimensionChecks the dimension an entity is in.
saturn:entity_typeChecks whether an entity is of the given type.
saturn:fall_distanceCompares the accumulated fall distance of an entity.
saturn:glowingChecks whether an entity is glowing.
saturn:healthReads or compares the current health of an entity.
saturn:exposed_to_skyChecks whether the position of an entity can see the sky.
saturn:food_levelCompares the food level of a player.
saturn:mob_effectChecks whether an entity has the given status effect.
saturn:on_blockChecks whether the block below the feet of an entity satisfies a block condition.
saturn:time_of_dayCompares the day/night time of the context world.
saturn:using_itemChecks whether an entity is using an item.
saturn:brightnessCompares the brightness at the position of an entity.
saturn:exposed_to_sunChecks whether an entity is exposed to sunlight.
saturn:experience_levelCompares the experience level of a player.
saturn:experience_pointsCompares the total experience points of a player.
saturn:relative_healthCompares the ratio of the current health of an entity to its maximum health.
saturn:saturation_levelCompares the food saturation of a player.
saturn:teamReads or checks the scoreboard team of an entity.
saturn:attributeReads or compares the value of a specified attribute of an entity.
saturn:block_collisionChecks whether the offset entity bounding box collides with blocks.
saturn:can_have_effectChecks whether an entity can receive the given status effect.
saturn:gamemodeChecks the game mode of a player.
saturn:passengerCounts the direct passengers that satisfy a bi-entity condition and compares the count.
saturn:attack_cooldownCompares the attack charge progress of a player.
saturn:equipped_itemChecks whether the item in the given equipment slot satisfies an item condition.
saturn:main_hand_itemChecks whether the main hand item of an entity satisfies an item condition.
saturn:in_blockChecks whether the block an entity is inside satisfies a condition.
saturn:in_block_anywhereCounts the blocks within the entity bounding box that satisfy a condition.
saturn:scoreboardCompares scores under the given scoreboard objective.
saturn:ridingChecks whether the mount of an entity satisfies a bi-entity condition.
saturn:riding_recursiveChecks multi-level riding relationships.
saturn:passenger_recursiveRecursively counts the passengers that satisfy a condition.
saturn:riding_rootChecks the root entity of the riding chain.
saturn:ability_storage_toggleChecks the toggle value of the given ability storage.
saturn:ability_storage_timerChecks the remaining duration of the ability timer.
saturn:ability_storage_resourceChecks the resource value in the ability storage.
saturn:ability_storage_targetChecks whether the ability has a locked target that satisfies the distance condition.
saturn:ability_storage_chargesChecks the remaining charges of the ability.
saturn:ability_storage_cooldownChecks the current remaining cooldown duration of the ability.