Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Done :
- # Glowing at 0,0
- # - All food does regular amount of hunger but with a 1 in 5 chance when eating to give Hunger 2 for 1 minute
- # - Spiders & Silverfish give poison when damage you
- # - Creepers give blindness when blow up and damage you
- # - Zombies give nausea when damage you
- # - Skeletons give hunger when shoot you
- # - Water poisons after 4 seconds in it
- # - Added eating while glowing = nausea 5 sec
- # To-Do:
- # - Test
- command /radiation [<text>]:
- permission: skript.op
- trigger:
- if arg-1 is "enable":
- set {radiation} to true
- delete {radiation::*}
- delete {radiationwater::*}
- message "Radiation is enabledz"
- if arg-1 is "disable":
- set {radiation} to false
- delete {radiation::*}
- delete {radiationwater::*}
- message "radiation is disabledz"
- every 2 seconds:
- loop all players:
- if {radiation} is true:
- if {radiation::%loop-player%} is set:
- subtract 2 from {radiation::%loop-player%}
- else if {radiation::%loop-player%} is not set:
- set {radiation::%loop-player%} to 0
- if loop-player's x-coordinates is smaller than 1:
- if loop-player's z-coordinates is smaller than 1:
- if loop-player's x-coordinates is greater than -1:
- if loop-player's z-coordinates is greater than -1:
- if {radiation::%loop-player%} is smaller than 150:
- apply glowing 1 to loop-player for 999 days
- set {radiation::%loop-player%} to 30000000000
- if loop-player's x-coordinates is smaller than 51:
- if loop-player's z-coordinates is smaller than 51:
- if loop-player's x-coordinates is greater than -51:
- if loop-player's z-coordinates is greater than -51:
- if {radiation::%loop-player%} is smaller than 300:
- remove glowing from loop-player
- apply glowing 1 to loop-player for 10 minutes
- set {radiation::%loop-player%} to 300
- if loop-player's x-coordinates is smaller than 101:
- if loop-player's z-coordinates is smaller than 101:
- if loop-player's x-coordinates is greater than -101:
- if loop-player's z-coordinates is greater than -101:
- if {radiation::%loop-player%} is smaller than 150:
- remove glowing from loop-player
- apply glowing 1 to loop-player for 5 minutes
- set {radiation::%loop-player%} to 150
- on consume:
- if {radiation} is true:
- if {radiation::%loop-player%} is greater than 1:
- apply potion of nausea of tier 2 to the player for 5 seconds
- chance of 20%:
- apply potion of hunger of tier 2 to the player for 1 minute
- on damage of player:
- if {radiation} is true:
- if attacker is a creeper:
- apply potion of blindness of tier 2 to the player for 10 seconds
- if attacker is a spider or silverfish:
- apply potion of poison of tier 2 to the player for 10 seconds
- if attacker is a skeleton:
- apply potion of hunger of tier 2 to the player for 10 seconds
- if attacker is a zombie:
- apply potion of nausea of tier 2 to the player for 10 seconds
- every 2 second:
- if {radiation} is true:
- loop all players:
- set {_dlo} to location of loop-player
- if block at {_dlo} is water:
- add 2 to {radiationwater::%loop-player%}
- if {radiationwater::%loop-player%} is equal to 4:
- set {radiationwater::%loop-player%} to 0
- remove poison from loop-player
- apply poison 2 to loop-player for 5 seconds
- else if block above {_dlo} is water:
- add 2 to {radiationwater::%loop-player%}
- if {radiationwater::%loop-player%} is equal to 4:
- set {radiationwater::%loop-player%} to 0
- remove poison from loop-player
- apply poison 2 to loop-player for 5 seconds
- else:
- set {radiationwater::%loop-player%} to 0
Add Comment
Please, Sign In to add comment