On Heal (Event) — Skript

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

Syntax

[on] heal[ing] [of %entity types%] [(from|due to|by) %heal reasons%]

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-command sender
  • event-entity
  • event-entity type
  • event-heal reason
  • 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