Accessory Equipped Count (Entity Condition Type)
Counts how many accessories the entity is wearing.
Counts the accessories the entity currently has equipped and compares that number.
Type ID: apoli:accessory_equipped_count (alias apoli:equipped_trinket_count)
Fields
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | <, <=, >, >=, ==, !=. |
compare_to | Integer | required | The count to compare against. |
slots | array 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. |
item_condition | Item Condition | optional | Only count accessories matching this. |
Examples
Wearing at least three accessories:
{
"type": "apoli:accessory_equipped_count",
"comparison": ">=",
"compare_to": 3
} A “minimalist” origin rewarded for wearing nothing at all:
{
"type": "apoli:attribute",
"modifiers": [
{
"attribute": "minecraft:generic.movement_speed",
"operation": "multiply_base_multiplicative",
"value": 0.25
}
],
"condition": {
"type": "apoli:accessory_equipped_count",
"comparison": "==",
"compare_to": 0
}
} Count only rings:
{
"type": "apoli:accessory_equipped_count",
"slots": ["hand/ring"],
"comparison": ">=",
"compare_to": 2
} 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.