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] %-potioneffecttypes%] [%-potionactions%] [due to %-potioncauses%]

Description

Called when an entity's potion effect is modified.

Event Values

  • event-commandsender
  • event-entity
  • event-entitydata
  • event-location
  • event-potionaction
  • event-potioncause
  • event-potioneffect
  • event-potioneffecttype
  • event-world
  • past event-potioneffect

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!"

View source