Skip to content

potioneffect

Daedalus1400 edited this page May 18, 2017 · 2 revisions

Description:

The potioneffect action applies potion effects to the player.

Added in release version 0.3.0

Arguments:

type

Must be "potioneffect".

effect

Accepts a string. Valid values are:

  1. absorption
  2. blindness
  3. fireresist
  4. glowing
  5. haste
  6. healthboost
  7. hunger
  8. instantdamage
  9. instanthealth
  10. invisibility
  11. jumpboost
  12. levitation
  13. luck
  14. miningfatigue
  15. nausea
  16. nightvision
  17. poison
  18. regeneration
  19. resistance
  20. saturation
  21. slowness
  22. speed
  23. strength
  24. unluck
  25. waterbreathing
  26. weakness
  27. wither

duration

Accepts a number. Length of the effect in ticks. Rounded down to nearest int.

amplifier

Accepts a number. Amplifier added to potion level to determine its severity. 0 is base effectiveness. Default is 0. Rounded down to nearest int.

chance

Accepts a number. Default value is 1.

Example Usage:

The following example will apply slowness II to the player:

{"type": "potioneffect", "effect": "slowness", "amplifier": 1}

Clone this wiki locally