Has Potion Effect
Tests Has Potion Effect using the configured inputs. Its Boolean result selects whether the If body runs; it does not assign a numeric result.
Where to find it
Section titled “Where to find it”If → Target Object: LivingEntity or a compatible subtype → Choose Operation → Effects. Requires Dev access to configure, then a successful compile to activate.
Inputs
Section titled “Inputs”| Input | Type | Role | Requirement | Default / constraint |
|---|---|---|---|---|
| Potion | Potion | Value | Required | Required |
Result and behavior
Section titled “Result and behavior”Returns a Boolean test for If.
Configuration example
Section titled “Configuration example”Block: IfOperation: Has Potion EffectTarget Object: LivingEntity target in this plotPotion: Potion: Speed, duration 20 ticks, amplifier 0Use this as an editor configuration: declare any Variables/collections first and choose real locations/eligible targets for your plot. It is not pasteable source code.
Restrictions and troubleshooting
Section titled “Restrictions and troubleshooting”The receiver must satisfy the declared native capability and remain eligible for the running plot. Player actions require an appropriate Play participant; a Build/Dev player is not automatically eligible.
Related guides
Section titled “Related guides”Editor · Arguments · Targets · Expressions · Native behavior
Reference identifier: living.has_potion.