Action On Equip
Fires an action when an item is equipped.
Type ID: ope:action_on_equip
Fields
| Field | Type | Default | Description |
|---|---|---|---|
head |
Item Conditions | Item condition to match the head item. |
|
chest |
Item Conditions | Item condition to match the chest item. |
|
legs |
Item Conditions | Item condition to match the legs item. |
|
feet |
Item Conditions | Item condition to match the feet item. |
|
offhand |
Item Conditions | Item condition to match the offhand item. |
|
action |
Entity Actions | Action to apply when the matching item is equipped. |
Example
{
"type": "ope:action_on_equip",
"head": {
"type": "origins:ingredient",
"ingredient": {
"item": "minecraft:netherite_helmet"
}
},
"action": {
"type": "origins:heal",
"amount": 6
}
}