Skip to main content

Accessory Slot Count (Entity Condition Type)

Counts the accessory slots the entity has, whether or not anything is in them. Use it to check the effect of apoli:modify_accessory_slots, or to make something depend on the player having somewhere to put it.

Type ID: apoli:accessory_slot_count (alias apoli:trinket_slot_count)

note

This type only exists when an accessory mod is installed: Trinkets, Accessories or Curios, depending on your loader. A pack that uses it must depend on one.

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the count is compared: <, <=, >, >=, == or !=.
compare_toIntegerrequiredThe count to compare against.
slotsArray of slots[]The accessory slots to count. A string is slot, group/slot or group/slot/index, such as "ring", "hand/ring" or "hand/ring/0". An empty list means every slot.

Example

{
  "type": "apoli:accessory_slot_count",
  "slots": ["hand/ring"],
  "comparison": ">",
  "compare_to": 0
}

This passes when there is at least one ring slot, so a ring-based ability can check it has somewhere to go.