Equipped Trinket Count
This condition checks if the entity has a trinket equipped in the specified slot.
Type ID: shappoli:equipped_trinket_count
Note
This condition requires Trinkets to be installed.
Tip
Add an inverted apoli:empty item condition to check if the slot is not empty.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
slot |
Trinket Slot | optional | Slot to check for trinket. If not specified, the condition will check for any slot. |
slots |
Array of Trinket Slot | optional | Slots to check for trinket. If not specified, the condition will check for any slot. |
item_condition |
Item Condition Type | Condition that must be met by the equipped trinket. | |
comparison |
Comparison | >= |
The comparison to use when comparing the amount of equipped trinkets. |
compare_to |
Integer | 1 |
The amount of equipped trinkets to compare with. |
Examples
"entity_condition": {
"type": "shappoli:equipped_trinket_count",
"slot": {
"group": "chest"
},
"comparison": ">",
"compare_to": 1,
"item_condition": {
"type": "apoli:empty",
"inverted": true
}
}
This example checks if the entity has at least 2 trinkets equipped in any slot of the chest group.
"entity_condition": {
"type": "shappoli:equipped_trinket_count",
"slots": [
{
"group": "chest"
},
{
"name": "ring"
}
],
"item_condition": {
"type": "apoli:ingredient",
"ingredient": {
"item": "minecraft:cobblestone"
}
}
}
This example checks if the entity has a trinket equipped in any slot of the chest group or the ring slot, and if the equipped trinket is a cobblestone.