Equipped Item (Entity Condition Type)

Checks whether the entity has an item equipped in the specified equipment slot that fulfills the specified Item Condition Type.

Checks whether the entity has an item equipped in the specified equipment slot that fulfills the specified Item Condition Type.

Type ID: apoli:equipped_item

Fields

FieldTypeDefaultDescription
equipment_slotStringDetermines which equipment slot to check for the item. Accepts "mainhand", "offhand", "head", "chest", "legs", "feet".
item_conditionItem Condition TypeThe item condition type to check for on the item in the specified equipment slot.

Examples

"condition": {
    "type": "apoli:equipped_item",
    "equipment_slot": "mainhand",
    "item_condition": {
        "type": "apoli:harvest_level",
        "comparison": ">=",
        "compare_to": 2
    }
}

This example will check if the item in the entity’s mainhand has a harvest level of 2 or more.