Potion Effect Event Cause (Type) — Skript
Addon: Skript · Category: Type · Since: 2.10 · Usage: patrol captain, axolotl, death, removal by resurrection, beacon effect, potion drunk, illusion, unknown, drinking potion, expired, pillager captain, attack, villager trade, spawned spider, wither rose infliction, conversion, enter area effect cloud, conduit effect, nautilus, command, food, drinking milk, plugin, converted, spider spawn, splash potion, warden, expiration, potion splash, dolphin boost, arrow infliction, turtle helmet effect
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!"