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.

Types​

saturn:ability_storage_charges​

Checks the remaining charge count of an ability.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ability_storage_charges
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
remainingNumber or range objectnoomittedRange of the remaining amount, or a runtime remaining value.
Example
{
"type": "saturn:ability_storage_charges",
"ability": "example:heal"
}

saturn:ability_storage_cooldown​

Checks the current remaining cooldown duration of an ability.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ability_storage_cooldown
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
remainingNumber or range objectnoomittedRange of the remaining amount, or a runtime remaining value.
Example
{
"type": "saturn:ability_storage_cooldown",
"ability": "example:heal"
}

saturn:ability_storage_resource​

Checks the resource value in the storage of an ability.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ability_storage_resource
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
amountNumber or range objectnoomittedAmount or value; a number provider accepts a number, a formula string, or an object with a type.
Example
{
"type": "saturn:ability_storage_resource",
"ability": "example:heal"
}

saturn:ability_storage_target​

Checks whether an ability has a locked target that matches the distance condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ability_storage_target
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
lockedBooleannotrueWhether a locked target must exist.
max_distanceNumber providernoomittedMaximum allowed target distance.
Example
{
"type": "saturn:ability_storage_target",
"ability": "example:heal"
}

saturn:ability_storage_timer​

Checks the remaining duration of an ability timer.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ability_storage_timer
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
remainingNumber or range objectnoomittedRange of the remaining amount, or a runtime remaining value.
Example
{
"type": "saturn:ability_storage_timer",
"ability": "example:heal"
}

saturn:ability_storage_toggle​

Checks the toggle value of the given ability storage.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ability_storage_toggle
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
expectedBooleannotrueThe expected toggle value.
Example
{
"type": "saturn:ability_storage_toggle",
"ability": "example:heal"
}

saturn:advancement​

Checks whether a server player has completed the specified advancement.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:advancement
advancementResource IDyes—Advancement ID; ignored when selection is everything.
Example
{
"type": "saturn:advancement",
"advancement": "minecraft:story/root"
}

saturn:air​

Reads or compares the remaining air of an entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:air
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:air",
"comparison": ">=",
"compare_to": 1
}

saturn:attack_cooldown​

Compares the attack charge progress of a player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:attack_cooldown
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:attack_cooldown",
"comparison": ">=",
"compare_to": 1
}

saturn:attack_target_condition​

Checks whether a mob currently has an attack target.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:attack_target_condition
Example
{
"type": "saturn:attack_target_condition"
}

saturn:attacker_condition​

Checks whether a living entity has a last attacker.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:attacker_condition
Example
{
"type": "saturn:attacker_condition"
}

saturn:attribute​

Reads or compares the value of a specified attribute of an entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:attribute
attributeResource IDyes—Attribute ID.
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:attribute",
"attribute": "minecraft:max_health",
"comparison": ">=",
"compare_to": 1
}

saturn:block_collision​

Checks whether the offset entity bounding box collides with blocks.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:block_collision
offset_xNumberno0.0Offset on the X axis.
offset_yNumberno0.0Offset on the Y axis.
offset_zNumberno0.0Offset on the Z axis.
Example
{
"type": "saturn:block_collision"
}

saturn:block_in_radius​

Counts matching blocks around the entity, enumerating positions lazily.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:block_in_radius
block_conditionBlock conditionsnosaturn:alwaysFilter condition of the declared context type.
radiusNumber provideryes—Radius in blocks.
shapeEnum stringno"cube"cube uses maximum axis distance; star uses Manhattan distance; sphere uses Euclidean distance.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:block_in_radius",
"radius": 3,
"block_condition": {
"type": "saturn:block_id",
"block": "minecraft:diamond_ore"
},
"comparison": ">=",
"compare_to": 1
}

Distances are relative to the query centre. Entity queries use entity positions and exclude spectators. Block radii are floored to a non-negative integer and positions are enumerated lazily. Negative or non-finite radii yield an empty region.

saturn:brightness​

Compares the brightness at the position of an entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:brightness
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:brightness",
"comparison": ">=",
"compare_to": 1
}

saturn:can_have_effect​

Checks whether an entity can receive the given status effect.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:can_have_effect
effectResource IDyes—Status effect ID.
Example
{
"type": "saturn:can_have_effect",
"effect": "minecraft:speed"
}

saturn:climbing​

Checks whether a living entity is on a climbable block.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:climbing
Example
{
"type": "saturn:climbing"
}

saturn:collided_horizontally​

Checks the entity’s horizontal collision flag.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:collided_horizontally
Example
{
"type": "saturn:collided_horizontally"
}

saturn:command​

Executes a command and compares its result. The command may have side effects; this condition is server-only.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:command
commandStringyes—Vanilla command; a leading / is optional.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:command",
"command": "data get entity @s Health",
"comparison": ">",
"compare_to": 10
}

Runs as the entity at its own position, with permission level 2; do not use in a condition that must remain read-only.

saturn:creative_flying​

Checks whether the player is currently using ability-based flight.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:creative_flying
Example
{
"type": "saturn:creative_flying"
}

saturn:daytime​

Checks whether the overworld clock is within the first 13,000 ticks of the day.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:daytime
Example
{
"type": "saturn:daytime"
}

saturn:dimension​

Checks the dimension an entity is in.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:dimension
dimensionResource IDyes—Dimension ID.
invertedBooleannofalseWhether to invert the check or the display direction.
Example
{
"type": "saturn:dimension",
"dimension": "minecraft:overworld"
}

saturn:enchantment​

Sums or takes the highest level of an enchantment across all equipment slots, then compares the result.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:enchantment
enchantmentResource IDyes—Registry reference to the enchantment.
calculationEnum stringno"sum"sum adds levels; max takes the highest level across equipment slots.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:enchantment",
"enchantment": "minecraft:protection",
"calculation": "sum",
"comparison": ">=",
"compare_to": 4
}

Non-living entities return false. All EquipmentSlot values are checked, including non-armour slots.

saturn:entity_in_radius​

Counts matching non-spectator entities in a radius, including the entity itself when it matches.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:entity_in_radius
entity_conditionEntity conditionsnosaturn:alwaysFilter condition of the declared context type.
radiusNumber provideryes—Radius in blocks.
shapeEnum stringno"cube"cube uses maximum axis distance; star uses Manhattan distance; sphere uses Euclidean distance.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:entity_in_radius",
"radius": 8,
"shape": "sphere",
"entity_condition": {
"type": "saturn:hostile"
},
"comparison": ">=",
"compare_to": 1
}

Distances are relative to the query centre. Entity queries use entity positions and exclude spectators. Block radii are floored to a non-negative integer and positions are enumerated lazily. Negative or non-finite radii yield an empty region.

saturn:entity_tag​

Checks whether the entity type belongs to the given tag.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:entity_tag
tagTag ID (with #)yes—Registry tag, or the NBT data declared on this page.
Example
{
"type": "saturn:entity_tag",
"tag": "#example:tag"
}

saturn:entity_type​

Checks whether the entity is of the given type.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:entity_type
entity_typeResource IDyes—Entity type ID.
Example
{
"type": "saturn:entity_type",
"entity_type": "minecraft:arrow"
}

saturn:equipped_item​

Checks whether the item in the given equipment slot satisfies an item condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:equipped_item
equipment_slotEnum stringyes—Equipment slot. Available values: mainhand, offhand, feet, legs, chest, head, body, saddle.
item_conditionItem conditionno{"type":"saturn:always"}Condition checked against the item stack.
Example
{
"type": "saturn:equipped_item",
"equipment_slot": "mainhand"
}

saturn:exists​

Checks whether the entity has not been removed; this is separate from being alive.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:exists
Example
{
"type": "saturn:exists"
}

saturn:experience_level​

Compares the experience level of a player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:experience_level
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:experience_level",
"comparison": ">=",
"compare_to": 1
}

saturn:experience_points​

Compares the total experience points of a player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:experience_points
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:experience_points",
"comparison": ">=",
"compare_to": 1
}

saturn:exposed_to_sky​

Checks whether the position of an entity can see the sky.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:exposed_to_sky
Example
{
"type": "saturn:exposed_to_sky"
}

saturn:exposed_to_sun​

Checks whether an entity is exposed to sunlight.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:exposed_to_sun
Example
{
"type": "saturn:exposed_to_sun"
}

saturn:fall_distance​

Compares the accumulated fall distance of an entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:fall_distance
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:fall_distance",
"comparison": ">=",
"compare_to": 1
}

saturn:fall_flying​

Checks whether a living entity is fall-flying.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:fall_flying
Example
{
"type": "saturn:fall_flying"
}

saturn:fluid_height​

Compares the height of the specified NeoForge fluid type intersecting the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:fluid_height
fluidResource IDyes—ID in NeoForge’s fluid_type registry, e.g. minecraft:water; this is separate from the block fluid registry.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:fluid_height",
"fluid": "minecraft:water",
"comparison": ">",
"compare_to": 0
}

saturn:food_level​

Compares the food level of a player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:food_level
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:food_level",
"comparison": ">=",
"compare_to": 1
}

saturn:gamemode​

Checks the game mode of a player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:gamemode
gamemodeEnum stringyes—Player game mode. Available values: survival, creative, adventure, spectator.
Example
{
"type": "saturn:gamemode",
"gamemode": "survival"
}

saturn:glowing​

Checks whether an entity is glowing.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:glowing
Example
{
"type": "saturn:glowing"
}

saturn:grounded​

Checks whether the entity is on the ground.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:grounded
Example
{
"type": "saturn:grounded"
}

saturn:has_ability​

Checks whether an entity has the given ability.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:has_ability
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
Example
{
"type": "saturn:has_ability",
"ability": "example:heal"
}

saturn:health​

Reads or compares the current health of an entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:health
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:health",
"comparison": "<",
"compare_to": 10
}

saturn:hostile​

Checks whether the entity implements vanilla’s Enemy interface.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:hostile
Example
{
"type": "saturn:hostile"
}

saturn:in_block​

Checks whether the block an entity is inside satisfies a condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:in_block
block_conditionBlock conditionyes—The condition to check for the target block.
Example
{
"type": "saturn:in_block",
"block_condition": {
"type": "saturn:always"
}
}

saturn:in_block_anywhere​

Counts the blocks inside the entity bounding box that satisfy a condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:in_block_anywhere
block_conditionBlock conditionyes—Condition checked against the target block.
comparisonComparison objectyes—Comparison operator; see the common data types for the comparison object fields.
Example
{
"type": "saturn:in_block_anywhere",
"block_condition": {
"type": "saturn:always"
},
"comparison": {
"comparison": ">=",
"compare_to": 1
}
}

saturn:in_rain​

Checks whether the target is exposed to rain at its current location.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:in_rain
Example
{
"type": "saturn:in_rain"
}

saturn:in_snow​

Checks whether the target is exposed to snow at its current position.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:in_snow
Example
{
"type": "saturn:in_snow"
}

Checks vanilla precipitation at the entity’s feet and eyes. Returns false when sheltered or when it is not raining.

saturn:in_thunderstorm​

Checks whether the target is exposed to rain during a thunderstorm.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:in_thunderstorm
Example
{
"type": "saturn:in_thunderstorm"
}

saturn:inventory​

Counts matching non-empty item stacks or items in vanilla inventory and equipment slots.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:inventory
process_modeEnum stringno"items"items counts individual items; stacks counts non-empty stacks.
item_conditionItem conditionsnosaturn:alwaysFilter condition of the declared context type.
slotInteger / string / mixed arrayno[]Vanilla command slot number or slot name/range; mixed arrays are accepted. An empty array selects the default slots.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:inventory",
"item_condition": {
"type": "saturn:item_id",
"item": "minecraft:diamond"
},
"comparison": ">=",
"compare_to": 3
}

Defaults to hotbar.*, inventory.*, weapon.*, armor.*, saddle and mob.inventory.*. Only vanilla slots exposed by the entity are visited. The player’s selected hotbar slot and main-hand alias are deduplicated. Origins Power inventories are not read.

saturn:invisible​

Checks whether the entity is invisible.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:invisible
Example
{
"type": "saturn:invisible"
}

saturn:living​

Checks whether the entity is a living entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:living
Example
{
"type": "saturn:living"
}

saturn:main_hand_item​

Checks whether the main hand item of an entity satisfies an item condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:main_hand_item
item_conditionItem conditionno{"type":"saturn:always"}The condition to check for the item stack.
Example
{
"type": "saturn:main_hand_item"
}

saturn:mob_effect​

Checks whether an entity has the given status effect.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:mob_effect
effectResource IDyes—Status effect ID.
Example
{
"type": "saturn:mob_effect",
"effect": "minecraft:speed"
}

saturn:nbt​

Matches a subset of the target’s saved NBT, including subset matching for lists.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:nbt
nbtNBT objectyes—NBT subset to match, expressed as a JSON object.
Example
{
"type": "saturn:nbt",
"nbt": {
"Tags": [
"example"
]
}
}

Uses vanilla NbtUtils.compareNbt subset matching. Match the fields actually saved by this Minecraft version. Block conditions require a block entity and return false when none exists.

saturn:on_block​

Checks whether the block below the feet of an entity satisfies a block condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:on_block
conditionBlock conditionyes—The condition to check.
Example
{
"type": "saturn:on_block",
"condition": {
"type": "saturn:always"
}
}

saturn:on_fire​

Checks whether the entity is on fire.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:on_fire
Example
{
"type": "saturn:on_fire"
}

saturn:partner​

Checks nearby entities within a range using a bi-entity condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:partner
rangeNumberno5.0Check range in blocks. Codec range: 0.5D, 32.0D.
countCount range object (min, max)no{"min":1}Range for the number of nearby living entities: min defaults to 1, max may be omitted; requires 0 ≤ min ≤ max.
bientity_conditionBi-entity conditionno{"type":"saturn:always"}The condition that filters both sides of the context.
Example
{
"type": "saturn:partner"
}

saturn:passenger​

Counts the direct passengers that satisfy a bi-entity condition and compares the count.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:passenger
bientity_conditionBi-entity conditionno{"type":"saturn:always"}The condition that filters both sides of the context.
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:passenger",
"comparison": ">=",
"compare_to": 1
}

saturn:passenger_recursive​

Recursively counts the passengers that satisfy a condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:passenger_recursive
bientity_conditionBi-entity conditionno{"type":"saturn:always"}The condition that filters both sides of the context.
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:passenger_recursive",
"comparison": ">=",
"compare_to": 1
}

saturn:player_ability​

Checks a vanilla player ability flag; separate from Saturn’s Ability skill system.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:player_ability
abilityEnum stringyes—Vanilla ability flag: flying, instabuild, invulnerable, may_build or mayfly.
Example
{
"type": "saturn:player_ability",
"ability": "mayfly"
}

saturn:predicate​

Evaluates a vanilla datapack predicate on the server. Missing predicates return false.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:predicate
predicateResource IDyes—Vanilla predicate ID, at data/<namespace>/predicate/<path>.json.
Example
{
"type": "saturn:predicate",
"predicate": "example:allowed"
}

Provides the vanilla COMMAND loot context with ORIGIN and THIS_ENTITY. Missing definitions and client-side checks return false.

saturn:raining​

Checks whether the level currently reports rainy weather.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:raining
Example
{
"type": "saturn:raining"
}

saturn:relative_health​

Compares the ratio of the current health of an entity to its maximum health.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:relative_health
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:relative_health",
"comparison": ">=",
"compare_to": 1
}

saturn:resource_compare​

Checks whether the current value of the given resource reaches at least min.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:resource_compare
resourceResource IDyes—Registered Saturn resource ID.
minNumber provideryes—Lower bound.
Example
{
"type": "saturn:resource_compare",
"resource": "example:mana",
"min": 1
}

saturn:riding​

Checks whether the mount of an entity satisfies a bi-entity condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:riding
bientity_conditionBi-entity conditionno{"type":"saturn:always"}The condition that filters both sides of the context.
Example
{
"type": "saturn:riding"
}

saturn:riding_recursive​

Checks multi-level riding relationships.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:riding_recursive
bientity_conditionBi-entity conditionno{"type":"saturn:always"}The condition that filters both sides of the context.
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:riding_recursive",
"comparison": ">=",
"compare_to": 1
}

saturn:riding_root​

Checks the root entity of the riding chain.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:riding_root
bientity_conditionBi-entity conditionno{"type":"saturn:always"}The condition that filters both sides of the context.
Example
{
"type": "saturn:riding_root"
}

saturn:saturation_level​

Compares the food saturation of a player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:saturation_level
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:saturation_level",
"comparison": ">=",
"compare_to": 1
}

saturn:scoreboard​

Compares scores under the given scoreboard objective.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:scoreboard
nameStringnoomittedLocal variable name, scoreboard holder name or configuration name.
objectiveStringyes—Scoreboard objective name.
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:scoreboard",
"objective": "kills",
"comparison": ">=",
"compare_to": 5,
"name": "Steve"
}

saturn:sneaking​

Checks whether an entity is sneaking.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:sneaking
Example
{
"type": "saturn:sneaking"
}

saturn:sprinting​

Checks whether the entity is sprinting.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:sprinting
Example
{
"type": "saturn:sprinting"
}

saturn:stat​

Compares a server player’s vanilla statistic.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:stat
statResource ID / objectyes—A custom statistic ID, or a {stat_type, id} object.
comparisonEnum stringyes—Comparison operator: ==, !=, <, <=, > or >=.
compare_toNumberyes—Numeric comparison target, used with comparison.
Example
{
"type": "saturn:stat",
"stat": "minecraft:jump",
"comparison": ">=",
"compare_to": 10
}

A string selects a minecraft:custom statistic, e.g. "minecraft:jump". A typed statistic uses {"stat_type":"minecraft:mined","id":"minecraft:stone"}. Unknown types or entries do not match or execute.

saturn:submerged_in​

Checks whether the entity’s eyes are in the NeoForge fluid type of the given fluid.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:submerged_in
fluidResource IDyes—Registered fluid ID.
Example
{
"type": "saturn:submerged_in",
"fluid": "minecraft:water"
}

The configured value is a fluid ID, but the eye check uses that fluid’s NeoForge FluidType; source and flowing variants sharing the type both match.

saturn:swimming​

Checks whether the entity is swimming.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:swimming
Example
{
"type": "saturn:swimming"
}

saturn:tamed​

Checks whether an ownable entity has an owner reference.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:tamed
Example
{
"type": "saturn:tamed"
}

saturn:team​

Reads or checks the scoreboard team of an entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:team
teamStringnoomittedScoreboard team name.
Example
{
"type": "saturn:team"
}

saturn:thundering​

Checks whether the level currently reports a thunderstorm.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:thundering
Example
{
"type": "saturn:thundering"
}

saturn:time_of_day​

Compares the day/night time of the context world.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:time_of_day
comparisonEnum stringyes—One of ==, !=, <, <=, >, >=.
compare_toNumberyes—The target number to compare against.
Example
{
"type": "saturn:time_of_day",
"comparison": ">=",
"compare_to": 1
}

saturn:using_item​

Checks whether an entity is using an item.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:using_item
Example
{
"type": "saturn:using_item"
}

Meta types​

These types do not test a concrete value themselves; they combine or delegate other types of the same kind and are embedded in the same fields.

saturn:always​

The condition is always true.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:always
Example
{
"type": "saturn:always"
}

saturn:and​

Matches only when every sub-condition holds.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:and
conditionsArray of conditions of the same kindyes—List of sub-conditions of the same kind.
Example
{
"type": "saturn:and",
"conditions": []
}

saturn:chance​

Decides whether the check succeeds based on a given chance.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:chance
chanceNumberyes—Hit chance; 0 never matches, 1 always matches. Codec range: 0.0D, 1.0D.
Example
{
"type": "saturn:chance",
"chance": 1
}

saturn:constant​

Returns the configured boolean value.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:constant
valueBooleanyes—The boolean result, or the expected/new boolean block property value.
Example
{
"type": "saturn:constant",
"value": true
}

saturn:js​

Calls a callback registered by KubeJS and passes the params argument.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:js
idStringyes—Identifier of the callback, option or entry.
paramsObjectno{}Parameter object passed to the script or formula.

Registered only when KubeJS is installed. JSON only selects an existing callback; it never executes a JavaScript string inside the JSON directly.

Example
{
"type": "saturn:js",
"id": "example_callback",
"params": {}
}

saturn:never​

The condition is always false.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:never
Example
{
"type": "saturn:never"
}

saturn:not​

Inverts the match result of the sub-condition.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:not
conditionCondition of the same kindyes—The condition to check.
Example
{
"type": "saturn:not",
"condition": {
"type": "saturn:always"
}
}

saturn:or​

Matches when any sub-condition holds.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:or
conditionsArray of conditions of the same kindyes—List of sub-conditions of the same kind.
Example
{
"type": "saturn:or",
"conditions": []
}