Equipped Item Action
Executes an Item Action on an item stack in a specified equipment slot.
Type ID: origins:equipped_item_action
Fields
| Field | Type | Default | Description |
|---|---|---|---|
equipment_slot |
String | Which equipped item to execute the action on. One of: "mainhand", "offhand", "head", "chest", "legs", "feet". |
|
action |
Item Action | The item action to execute. |
Example
"entity_action": {
"type": "origins:equipped_item_action",
"equipment_slot": "mainhand",
"action": {
"type": "origins:consume",
"amount": 1
}
}
Removes 1 item from the stack in the entity's main hand.