Skip to main content

Holder Action (Item Action Type)

Runs an entity action on whoever is holding the item stack.

Type ID: apoli:holder_action (alias apoli:holder)

Fields

FieldTypeDefaultDescription
actionEntity Action TypeoptionalThe entity action to run on the holder.
entity_actionEntity Action TypeoptionalThe same as action, under another name.

Examples

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

This heals the holder by 2 hearts (4 health points).