Potion Effect Event Action (Type) — Skript

Addon: Skript · Category: Type · Since: 2.14 · Usage: added, changed, cleared, removed

Syntax

potionaction

Description

Represents the action being performed in an 'entity potion effect' event. 'added' indicates the entity does not already have a potion effect of the event potion effect type. 'changed' indicates the entity already has a potion effect of the event potion effect type, but some property about the potion effect is changing. 'cleared' indicates that the effect is being removed because all of the entity's effects are being removed. 'removed' indicates that the event potion effect type has been specifically removed from the entity.

Examples

on entity potion effect:
	if the event-potion effect action is removal:
		message "One of your existing potion effects was removed!"

View source