Skip to main content

Equipped Item (Entity Condition Type)

Checks whether the item in one of the entity's equipment slots passes an item condition.

Type ID: apoli:equipped_item

Fields

FieldTypeDefaultDescription
equipment_slotStringrequiredWhich equipment slot to check: "mainhand", "offhand", "head", "chest", "legs" or "feet".
item_conditionItem Condition TyperequiredThe condition the item in that slot must pass.

Examples

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

This checks whether the item in the entity's main hand has a harvest level of 2 or more.