Accessory Slot Count (Entity Condition Type)

Counts how many accessory slots the entity has.

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 gate something on the player having somewhere to put it.

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

Fields

FieldTypeDefaultDescription
comparisonComparisonrequired<, <=, >, >=, ==, !=.
compare_toIntegerrequiredThe count to compare against.
slotsarray of String or objects[]Which accessory slots to look at. A string is slot, group/slot, or group/slot/index — for example "ring", "hand/ring", "hand/ring/0". An empty list means every slot.

Example

Only grant a ring-based ability if there is a ring slot to use:

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

Needs an accessory mod — Trinkets, Accessories or Curios, depending on your loader. These types do not exist without one, so a pack using them must depend on it.