Equipped Item Action (Entity Action Type)

Executes an Item Action Type on an item stack in a specified equipment slot.

Executes an Item Action Type on an item stack in a specified equipment slot.

Type ID: apoli:equipped_item_action

Fields

FieldTypeDefaultDescription
equipment_slotStringWhich equipped item to execute the action on. One of: "mainhand", "offhand", "head", "chest", "legs", "feet".
actionItem Action TypeThe item action type to execute on the item stack in the specified equipment slot.

Examples

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

This example will “consume” (remove) 1 item from the item stack in the mainhand equipment slot.