Potion Effect Event Cause (Type) — Skript
Addon: Skript · Category: Type · Since: 2.10 · Usage: enter area effect cloud, arrow infliction, attack, axolotl, beacon effect, command, conduit effect, conversion, death, dolphin boost, expiration, food, illusion, drinking milk, nautilus, pillager captain, plugin, potion drunk, potion splash, spider spawn, removal by resurrection, turtle helmet effect, unknown, villager trade, warden, wither rose infliction
Syntax
potioncauseDescription
Represents the cause of an 'entity potion effect' event. For example, an arrow hitting an entity or a command being executed.
Examples
on entity potion effect:
if the event-potion effect cause is arrow affliction:
message "You were hit by a tipped arrow!"