Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Damage Cycle Skript v2!
- # Ask 6dayna6 any questions or concerns you may have. This is fairly easy to customize, just go to the prefix options to change it.
- options:
- prefix: &4&l[&6&lDamageCycle&4&l]
- variables:
- {damage}=false
- {cycle}=0
- command /damagecycle <text>:
- usage: /dc help
- permission: skript.op
- aliases: /dc
- trigger:
- if arg 1 is not set:
- send "{@prefix} &e&lList of DamageCycle commands"
- send "&e/dc start &8- &7Starts the Cycle"
- send "&e/dc end &8- &7Ends the Cycle"
- send "&e/dc current &8- &7Tells you what the current cycle is on"
- send "&e/dc reset &8- &7Resets the current cycle"
- send "&e/dc help &8- &7Displays the list of DC commands"
- if arg 1 is equal to "start":
- if {damage} is true:
- send "{@prefix} &cAlready enabled"
- else if {damage} is false:
- set {damage} to true
- broadcast "{@prefix} &cEnabled by &c&l%command sender%"
- set {cycle} to a random integer between 1 and 10
- if arg 1 is equal to "end":
- if {damage} is false:
- send "{@prefix} &cAlready disabled"
- else if {damage} is true:
- set {damage} to false
- broadcast "{@prefix} &cDisabled by &c&l%command sender%"
- set {cycle} to 0
- if arg 1 is equal to "help":
- send "{@prefix} &e&lList of DamageCycle commands"
- send "&e/dc start &8- &7Starts the Cycle"
- send "&e/dc end &8- &7Ends the Cycle"
- send "&e/dc current &8- &7Tells you what the current cycle is on"
- send "&e/dc reset &8- &7Resets the current cycle"
- send "&e/dc help &8- &7Displays the list of DC commands"
- if arg 1 is equal to "current":
- if {cycle} is 0:
- send "{@prefix} &cThe cycle is not running"
- if {cycle} is 1:
- send "{@prefix} &cCurrent damage is &6&lFall damage"
- if {cycle} is 2:
- send "{@prefix} &cCurrent damage is &6&lZombies & Zombie Pigmen"
- if {cycle} is 3:
- send "{@prefix} &cCurrent damage is &6&lEffects"
- if {cycle} is 4:
- send "{@prefix} &cCurrent damage is &6&lSuffocation & Drowning"
- if {cycle} is 5:
- send "{@prefix} &cCurrent damage is &6&lExplosions"
- if {cycle} is 6:
- send "{@prefix} &cCurrent damage is &6&lFire"
- if {cycle} is 7:
- send "{@prefix} &cCurrent damage is &6&lSpiders & Cave Spiders"
- if {cycle} is 8:
- send "{@prefix} &cCurrent damage is &6&lEndermen"
- if {cycle} is 9:
- send "{@prefix} &cCurrent damage is &6&lSkeletons"
- if {cycle} is 10:
- send "{@prefix} &cCurrent damage is &6&lSilverfish"
- if arg 1 is equal to "reset":
- set {cycle} to 0
- send "{@prefix} &cCycle was reset"
- every 5 minutes:
- if {damage} is true:
- set {cycle} to a random integer between 1 and 10
- if {cycle} is 1:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lFALLING &cwill instantly kill you!"
- if {cycle} is 2:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lZOMBIES AND PIGMEN &cwill instantly kill you!"
- if {cycle} is 3:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lDAMAGING EFFECTS &cwill instantly kill you!"
- if {cycle} is 4:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lSUFFOCATION AND DROWNING &cwill instantly kill you!"
- if {cycle} is 5:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lEXPLOSIONS &cwill instantly kill you!"
- if {cycle} is 6:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lFIRE &cwill instantly kill you!"
- if {cycle} is 7:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lSPIDERS AND CAVE SPIDERS &cwill instantly kill you!"
- if {cycle} is 8:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lENDERMEN &cwill instantly kill you!"
- if {cycle} is 9:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lSKELETONS &cwill instantly kill you!"
- if {cycle} is 10:
- broadcast "{@prefix} &cThe cycle has swapped"
- broadcast "{@prefix} &cAll damage from &6&lSILVERFISH &cwill instantly kill you!"
- on damage of a player:
- if {damage} is true:
- if {cycle} is 1:
- damage is caused by fall
- damage victim by 200 hearts
- if {cycle} is 2:
- attacker is a zombie or zombie pigman
- damage victim by 200 hearts
- if {cycle} is 3:
- if damage is caused by potion:
- damage victim by 200 hearts
- if damage is caused by poison:
- damage victim by 200 hearts
- if {cycle} is 4:
- if damage is caused by suffocation or drowning:
- damage victim by 200 hearts
- if {cycle} is 5:
- if attacker is a creeper or ghast:
- damage victim by 200 hearts
- if damage is caused by block explosion or entity explosion:
- damage victim by 200 hearts
- if {cycle} is 6:
- damage is caused by fire
- damage victim by 200 hearts
- if {cycle} is 7:
- attacker is a spider or cave spider
- damage victim by 200 hearts
- if {cycle} is 8:
- attacker is a enderman
- damage victim by 200 hearts
- if {cycle} is 9:
- attacker is a skeleton
- damage victim by 200 hearts
- if {cycle} is 10:
- attacker is a silverfish
- damage victim by 200 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement