Accessory Equipped Count (Entity Condition Type)
Counts the accessories the entity currently has equipped and compares that number.
Type ID: apoli:accessory_equipped_count (alias apoli:equipped_trinket_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
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How the count is compared: <, <=, >, >=, == or !=. |
compare_to | Integer | required | The count to compare against. |
slots | Array of slots | [] | The accessory slots to count in. 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. |
Examples
{
"type": "apoli:accessory_equipped_count",
"comparison": ">=",
"compare_to": 3
}This checks whether the entity is wearing at least three accessories.
{
"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
}
}This minimalist origin moves faster while it wears nothing at all.
{
"type": "apoli:accessory_equipped_count",
"slots": ["hand/ring"],
"comparison": ">=",
"compare_to": 2
}This only counts rings, and passes for two or more.