On Entity Potion Effect (Event) — Skript
Addon: Skript · Category: Event · Since: 2.10, 2.14 (action support)
Syntax
[on] entity potion effect [modif[y|ication]] [[of] %potion effect types%] [%potion actions%] [due to %potion causes%]Description
Called when an entity's potion effect is modified.
Event Values
- event-command sender
- event-entity
- event-entity type
- event-location
- event-potion action
- event-potion cause
- event-potion effect
- event-potion effect type
- event-world
- past event-potion effect
Examples
on entity potion effect modification:
broadcast "A potion effect was added to %event-entity%!"
on entity potion effect of night vision added:
message "You can now see in the dark!"
on entity potion effect of strength removed:
message "You're now weaker!"