Skip to main content

Item condition

Checks a single ItemStack. An item ID string cannot be treated directly as an arbitrary ItemCondition.

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:item_idChecks whether the item stack is the given item.
saturn:item_tagChecks whether the item belongs to the given tag.
saturn:item_matcherChecks the item stack against several item matcher entries.
saturn:amountCompares the count of the item stack.
saturn:fuelCompares the burn time of the item as fuel.
saturn:is_equipableChecks whether the item can be equipped into the given slot.
saturn:relative_durabilityCompares the ratio of remaining durability to maximum durability.
saturn:armor_valueCompares the armor value provided by the equipment.
saturn:durabilityCompares the remaining durability of the item.
saturn:on_cooldownChecks whether the item in the context is on cooldown.
saturn:ingredientMatches the item using a Minecraft Ingredient.
saturn:tool_abilityChecks whether the item supports the given NeoForge ItemAbility.
saturn:base_enchantmentCompares the level of the given base enchantment on the item.
saturn:has_componentChecks whether the item stack has the given data component.
saturn:componentChecks the data of the given component on the item stack.