Equipped Item
Checks whether the entity has an item equipped in the specified equipment slot that fulfills the specified Item Condition Type.
Type ID: origins:equipped_item
Fields
Field | Type | Default | Description |
---|---|---|---|
equipment_slot |
String | Determines which equipment slot to check for the item. Accepts "mainhand" , "offhand" , "head" , "chest" , "legs" , "feet" . |
|
item_condition |
Item Condition Type | The item condition type to check for on the item in the specified equipment slot. |
Examples
"condition": {
"type": "origins:equipped_item",
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins: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.