On Heal (Event) — Skript

Addon: Skript · Category: Event · Since: 1.0, 2.9.0 (by reason)

Syntax

[on] heal[ing] [of %-entitydatas%] [(from|due to|by) %-healreasons%]

Description

Called when an entity is healed, e.g. by eating (players), being fed (pets), or by the effect of a potion of healing (overworld mobs) or harm (nether mobs).

Event Values

  • event-commandsender
  • event-entity
  • event-entitydata
  • event-healreason
  • event-location
  • event-world

Examples

on heal:
on player healing from a regeneration potion:
on healing of a zombie, cow or a wither:
	heal reason is healing potion
	cancel event

View source