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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:ability_storage_charges |
ability | Resource ID | yes | — | Ability ID or tool ability, depending on the field type. |
remaining | Number or range object | no | omitted | Range 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:ability_storage_cooldown |
ability | Resource ID | yes | — | Ability ID or tool ability, depending on the field type. |
remaining | Number or range object | no | omitted | Range 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:ability_storage_resource |
ability | Resource ID | yes | — | Ability ID or tool ability, depending on the field type. |
amount | Number or range object | no | omitted | Amount 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:ability_storage_target |
ability | Resource ID | yes | — | Ability ID or tool ability, depending on the field type. |
locked | Boolean | no | true | Whether a locked target must exist. |
max_distance | Number provider | no | omitted | Maximum allowed target distance. |
Example
{
"type": "saturn:ability_storage_target",
"ability": "example:heal"
}
saturn:ability_storage_timer
Checks the remaining duration of an ability timer.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:ability_storage_timer |
ability | Resource ID | yes | — | Ability ID or tool ability, depending on the field type. |
remaining | Number or range object | no | omitted | Range 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:ability_storage_toggle |
ability | Resource ID | yes | — | Ability ID or tool ability, depending on the field type. |
expected | Boolean | no | true | The expected toggle value. |
Example
{
"type": "saturn:ability_storage_toggle",
"ability": "example:heal"
}
saturn:advancement
Checks whether a server player has completed the specified advancement.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:advancement |
advancement | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:air |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:attack_cooldown |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:attack_target_condition |
Example
{
"type": "saturn:attack_target_condition"
}
saturn:attacker_condition
Checks whether a living entity has a last attacker.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:attacker_condition |
Example
{
"type": "saturn:attacker_condition"
}
saturn:attribute
Reads or compares the value of a specified attribute of an entity.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:attribute |
attribute | Resource ID | yes | — | Attribute ID. |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:block_collision |
offset_x | Number | no | 0.0 | Offset on the X axis. |
offset_y | Number | no | 0.0 | Offset on the Y axis. |
offset_z | Number | no | 0.0 | Offset on the Z axis. |
Example
{
"type": "saturn:block_collision"
}
saturn:block_in_radius
Counts matching blocks around the entity, enumerating positions lazily.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:block_in_radius |
block_condition | Block conditions | no | saturn:always | Filter condition of the declared context type. |
radius | Number provider | yes | — | Radius in blocks. |
shape | Enum string | no | "cube" | cube uses maximum axis distance; star uses Manhattan distance; sphere uses Euclidean distance. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:brightness |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:can_have_effect |
effect | Resource ID | yes | — | Status effect ID. |
Example
{
"type": "saturn:can_have_effect",
"effect": "minecraft:speed"
}
saturn:climbing
Checks whether a living entity is on a climbable block.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:climbing |
Example
{
"type": "saturn:climbing"
}
saturn:collided_horizontally
Checks the entity’s horizontal collision flag.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:command |
command | String | yes | — | Vanilla command; a leading / is optional. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:daytime |
Example
{
"type": "saturn:daytime"
}
saturn:dimension
Checks the dimension an entity is in.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:dimension |
dimension | Resource ID | yes | — | Dimension ID. |
inverted | Boolean | no | false | Whether 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:enchantment |
enchantment | Resource ID | yes | — | Registry reference to the enchantment. |
calculation | Enum string | no | "sum" | sum adds levels; max takes the highest level across equipment slots. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:entity_in_radius |
entity_condition | Entity conditions | no | saturn:always | Filter condition of the declared context type. |
radius | Number provider | yes | — | Radius in blocks. |
shape | Enum string | no | "cube" | cube uses maximum axis distance; star uses Manhattan distance; sphere uses Euclidean distance. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:entity_tag |
tag | Tag 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:entity_type |
entity_type | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:equipped_item |
equipment_slot | Enum string | yes | — | Equipment slot. Available values: mainhand, offhand, feet, legs, chest, head, body, saddle. |
item_condition | Item condition | no | {"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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:exists |
Example
{
"type": "saturn:exists"
}
saturn:experience_level
Compares the experience level of a player.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:experience_level |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:experience_points |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:exposed_to_sky |
Example
{
"type": "saturn:exposed_to_sky"
}
saturn:exposed_to_sun
Checks whether an entity is exposed to sunlight.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:exposed_to_sun |
Example
{
"type": "saturn:exposed_to_sun"
}
saturn:fall_distance
Compares the accumulated fall distance of an entity.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:fall_distance |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:fall_flying |
Example
{
"type": "saturn:fall_flying"
}
saturn:fluid_height
Compares the height of the specified NeoForge fluid type intersecting the entity.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:fluid_height |
fluid | Resource ID | yes | — | ID in NeoForge’s fluid_type registry, e.g. minecraft:water; this is separate from the block fluid registry. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:food_level |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | The target number to compare against. |
Example
{
"type": "saturn:food_level",
"comparison": ">=",
"compare_to": 1
}
saturn:gamemode
Checks the game mode of a player.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:gamemode |
gamemode | Enum string | yes | — | Player game mode. Available values: survival, creative, adventure, spectator. |
Example
{
"type": "saturn:gamemode",
"gamemode": "survival"
}
saturn:glowing
Checks whether an entity is glowing.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:glowing |
Example
{
"type": "saturn:glowing"
}
saturn:grounded
Checks whether the entity is on the ground.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:grounded |
Example
{
"type": "saturn:grounded"
}
saturn:has_ability
Checks whether an entity has the given ability.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:has_ability |
ability | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:health |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:hostile |
Example
{
"type": "saturn:hostile"
}
saturn:in_block
Checks whether the block an entity is inside satisfies a condition.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:in_block |
block_condition | Block condition | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:in_block_anywhere |
block_condition | Block condition | yes | — | Condition checked against the target block. |
comparison | Comparison object | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:in_rain |
Example
{
"type": "saturn:in_rain"
}
saturn:in_snow
Checks whether the target is exposed to snow at its current position.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:in_thunderstorm |
Example
{
"type": "saturn:in_thunderstorm"
}
saturn:inventory
Counts matching non-empty item stacks or items in vanilla inventory and equipment slots.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:inventory |
process_mode | Enum string | no | "items" | items counts individual items; stacks counts non-empty stacks. |
item_condition | Item conditions | no | saturn:always | Filter condition of the declared context type. |
slot | Integer / string / mixed array | no | [] | Vanilla command slot number or slot name/range; mixed arrays are accepted. An empty array selects the default slots. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:invisible |
Example
{
"type": "saturn:invisible"
}
saturn:living
Checks whether the entity is a living entity.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:living |
Example
{
"type": "saturn:living"
}
saturn:main_hand_item
Checks whether the main hand item of an entity satisfies an item condition.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:main_hand_item |
item_condition | Item condition | no | {"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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:mob_effect |
effect | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:nbt |
nbt | NBT object | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:on_block |
condition | Block condition | yes | — | The condition to check. |
Example
{
"type": "saturn:on_block",
"condition": {
"type": "saturn:always"
}
}
saturn:on_fire
Checks whether the entity is on fire.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:on_fire |
Example
{
"type": "saturn:on_fire"
}
saturn:partner
Checks nearby entities within a range using a bi-entity condition.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:partner |
range | Number | no | 5.0 | Check range in blocks. Codec range: 0.5D, 32.0D. |
count | Count 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_condition | Bi-entity condition | no | {"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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:passenger |
bientity_condition | Bi-entity condition | no | {"type":"saturn:always"} | The condition that filters both sides of the context. |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:passenger_recursive |
bientity_condition | Bi-entity condition | no | {"type":"saturn:always"} | The condition that filters both sides of the context. |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:player_ability |
ability | Enum string | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:predicate |
predicate | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:raining |
Example
{
"type": "saturn:raining"
}
saturn:relative_health
Compares the ratio of the current health of an entity to its maximum health.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:relative_health |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:resource_compare |
resource | Resource ID | yes | — | Registered Saturn resource ID. |
min | Number provider | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:riding |
bientity_condition | Bi-entity condition | no | {"type":"saturn:always"} | The condition that filters both sides of the context. |
Example
{
"type": "saturn:riding"
}
saturn:riding_recursive
Checks multi-level riding relationships.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:riding_recursive |
bientity_condition | Bi-entity condition | no | {"type":"saturn:always"} | The condition that filters both sides of the context. |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:riding_root |
bientity_condition | Bi-entity condition | no | {"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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:saturation_level |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | The target number to compare against. |
Example
{
"type": "saturn:saturation_level",
"comparison": ">=",
"compare_to": 1
}
saturn:scoreboard
Compares scores under the given scoreboard objective.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:scoreboard |
name | String | no | omitted | Local variable name, scoreboard holder name or configuration name. |
objective | String | yes | — | Scoreboard objective name. |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:sneaking |
Example
{
"type": "saturn:sneaking"
}
saturn:sprinting
Checks whether the entity is sprinting.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:sprinting |
Example
{
"type": "saturn:sprinting"
}
saturn:stat
Compares a server player’s vanilla statistic.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:stat |
stat | Resource ID / object | yes | — | A custom statistic ID, or a {stat_type, id} object. |
comparison | Enum string | yes | — | Comparison operator: ==, !=, <, <=, > or >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:submerged_in |
fluid | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:swimming |
Example
{
"type": "saturn:swimming"
}
saturn:tamed
Checks whether an ownable entity has an owner reference.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:tamed |
Example
{
"type": "saturn:tamed"
}
saturn:team
Reads or checks the scoreboard team of an entity.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:team |
team | String | no | omitted | Scoreboard team name. |
Example
{
"type": "saturn:team"
}
saturn:thundering
Checks whether the level currently reports a thunderstorm.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:thundering |
Example
{
"type": "saturn:thundering"
}
saturn:time_of_day
Compares the day/night time of the context world.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:time_of_day |
comparison | Enum string | yes | — | One of ==, !=, <, <=, >, >=. |
compare_to | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:always |
Example
{
"type": "saturn:always"
}
saturn:and
Matches only when every sub-condition holds.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:and |
conditions | Array of conditions of the same kind | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:chance |
chance | Number | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:constant |
value | Boolean | yes | — | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:js |
id | String | yes | — | Identifier of the callback, option or entry. |
params | Object | no | {} | 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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:never |
Example
{
"type": "saturn:never"
}
saturn:not
Inverts the match result of the sub-condition.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:not |
condition | Condition of the same kind | yes | — | The condition to check. |
Example
{
"type": "saturn:not",
"condition": {
"type": "saturn:always"
}
}
saturn:or
Matches when any sub-condition holds.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:or |
conditions | Array of conditions of the same kind | yes | — | List of sub-conditions of the same kind. |
Example
{
"type": "saturn:or",
"conditions": []
}