Skip to content

Modify Trinket

This action modifies trinkets in equipment slots.

Type ID: shappoli:modify_trinket

Note

This action requires Trinkets to be installed.

Note

This action is extremely similar to the Modify Inventory action, but is specifically for trinkets.

Fields

Field Type Default Description
entity_action Entity Action Type optional Action to perform on the entity.
item_action Item Action Type optional Action to perform on the trinket.
item_condition Item Condition Type optional Condition that must be met for the action to trigger. If not specified, the action will always trigger.
slot Trinket Slot optional Slot to modify trinket. If not specified, the action will modify all slots.
slots Array of Trinket Slot optional Slots to modify trinket. If not specified, the action will modify all slots.
process_mode Process Mode "stacks" Determines how the affected item stacks in the specified inventory are modified.
limit Integer 0 Determines the max amount of times the action should modify item stacks in the inventory. If the specified value is <= 0, then there will be no limit.

Examples

"entity_action": {
  "type": "shappoli:modify_trinket",
  "item_action": {
    "type": "apoli:consume"
  },
  "slot": {
    "group": "chest"
  }
}

This example will consume all trinkets in the slots of the chest group.