Item condition
Checks a single ItemStack. An item ID string cannot be treated directly as an arbitrary ItemCondition.
| 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:item_id | Checks whether the item stack is the given item. |
saturn:item_tag | Checks whether the item belongs to the given tag. |
saturn:item_matcher | Checks the item stack against several item matcher entries. |
saturn:amount | Compares the count of the item stack. |
saturn:fuel | Compares the burn time of the item as fuel. |
saturn:is_equipable | Checks whether the item can be equipped into the given slot. |
saturn:relative_durability | Compares the ratio of remaining durability to maximum durability. |
saturn:armor_value | Compares the armor value provided by the equipment. |
saturn:durability | Compares the remaining durability of the item. |
saturn:on_cooldown | Checks whether the item in the context is on cooldown. |
saturn:ingredient | Matches the item using a Minecraft Ingredient. |
saturn:tool_ability | Checks whether the item supports the given NeoForge ItemAbility. |
saturn:base_enchantment | Compares the level of the given base enchantment on the item. |
saturn:has_component | Checks whether the item stack has the given data component. |
saturn:component | Checks the data of the given component on the item stack. |