Holder Action (Item Action Type)

Executes an entity action on the holder of the item stack.

Executes an entity action on the holder of the item stack.

Type ID: apoli:holder_action

Aliases: apoli:holder

Fields

FieldTypeDefaultDescription
actionEntity Action TypeoptionalThe entity action to execute on the holder of the item stack.
entity_actionEntity Action TypeoptionalThe same as the action field, but with a different name.

Examples

"item_action": {
	"type": "apoli:holder_action",
	"action": {
		"type": "apoli:heal",
		"amount": 4.0
	}
}

This example will recover 2 hearts (4 health points) of the holder of the item stack.