Hello, this is my second script, it adds potion effects, currently they are set using a command:
/effect <effect name> <time (in seconds)> <amplifier (not on every effect)>
Current effects:
Poison - every second it damages you a bit of health, this effect needs an amplifier which affects how many hearts are taken off every second, for a level 1 poison effect 10 seconds long you would do /effect poison 10 1. It does not kill you, if the next second your'e supposed to die from the damage, you'll instead be left with half a heart.
/effect <effect name> <time (in seconds)> <amplifier (not on every effect)>
Current effects:
Poison - every second it damages you a bit of health, this effect needs an amplifier which affects how many hearts are taken off every second, for a level 1 poison effect 10 seconds long you would do /effect poison 10 1. It does not kill you, if the next second your'e supposed to die from the damage, you'll instead be left with half a heart.
code (to download paste this URL in blocklauncher):
//dl.dropboxusercontent.com/s/8j98ucefsvt96gq/potionEffects.js?dl=1&token_hash=AAG2X5oBM0cRIKRYaYjxS3mfBDcISxARtrGS1vcBSqf2XA%5B/url" target="" data-ensure-absolute>"]https://dl.dropboxus...vcBSqf2XA
Source:
https://www.dropbox.com/s/8j98ucefsvt96gq/potionEffects.js