Skip to main content

Tool ability

saturn:tool_ability

Checks whether the item supports the given NeoForge ItemAbility.

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

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:tool_ability
abilityResource IDyes—Ability ID or tool ability, depending on the field type.

JSON example​

{
"type": "saturn:tool_ability",
"ability": "example:heal"
}

This is a value to embed in the corresponding field, not a standalone loadable data pack file. The example: references in the examples must be replaced with defined entries.

Java entry point​

com.iafenvoy.saturn.data.condition.builtin.item.ToolAbilityCondition. This page is based on the Codec in the current 26.1.2 source.