-
Notifications
You must be signed in to change notification settings - Fork 1
potioneffect
Daedalus1400 edited this page May 18, 2017
·
2 revisions
The potioneffect action applies potion effects to the player.
Added in release version 0.3.0
Must be "potioneffect".
Accepts a string. Valid values are:
- absorption
- blindness
- fireresist
- glowing
- haste
- healthboost
- hunger
- instantdamage
- instanthealth
- invisibility
- jumpboost
- levitation
- luck
- miningfatigue
- nausea
- nightvision
- poison
- regeneration
- resistance
- saturation
- slowness
- speed
- strength
- unluck
- waterbreathing
- weakness
- wither
Accepts a number. Length of the effect in ticks. Rounded down to nearest int.
Accepts a number. Amplifier added to potion level to determine its severity. 0 is base effectiveness. Default is 0. Rounded down to nearest int.
Accepts a number. Default value is 1.
The following example will apply slowness II to the player:
{"type": "potioneffect", "effect": "slowness", "amplifier": 1}