Item action
Operates on the item stack and its holder from the context. It is not an item definition file; embed it in a field that requires an ItemAction.
| Type | Purpose |
|---|---|
saturn:no_op | Does nothing; usable as a placeholder action value. |
saturn:sequence | Runs several actions of the same kind in array order. |
saturn:chance | Decides whether the action fires based on a given chance. |
saturn:if_else | Runs if_action when the condition holds, otherwise runs else_action. |
saturn:choice | Picks one action at random by weight and runs it. |
saturn:send_message | Sends a text component to players that match the recipient condition, optionally to the chat bar or the action bar. |
saturn:js | Calls a callback registered by KubeJS and passes the params argument. |
saturn:damage_item | Applies the given durability loss to the item stack. |
saturn:consume_item | Reduces the count of the item stack in the context. |
saturn:consume_health | Consumes health from the item holder. |
saturn:cooldown | Reads or sets the cooldown state. |
saturn:remove_enchantment | Removes selected enchantments from the item, optionally resetting the repair cost. |
saturn:add_enchantment | Adds or overrides enchantment levels on the item according to the map. |
saturn:merge_components | Merges a data component patch into the item stack. |