Skip to main content

Equipped Item Action (Entity Action Type)

Runs an item action on the item stack in one of the entity's equipment slots.

Type ID: apoli:equipped_item_action

Fields

FieldTypeDefaultDescription
equipment_slotStringrequiredThe equipment slot to use: "mainhand", "offhand", "head", "chest", "legs" or "feet".
actionItem Action TyperequiredThe item action to run on the stack in that slot.

Examples

"entity_action": {
  	"type": "apoli:equipped_item_action",
  	"equipment_slot": "mainhand",
  	"action": {
	  	"type": "apoli:consume",
	  	"amount": 1
  	}
}

This consumes (removes) 1 item from the stack in the main hand.