Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: uhc.staff
- P: &f[&bDamage Cycle&f]
- C: &b
- H: &f
- function damagecycle(a: text = "default"):
- set {_cycle} to a random integer between 1 and 10
- if {_cycle} is 1:
- broadcast "{@P}{@C} The cycle has changed to &lFalling"
- set {cycledamage} to {_cycle}
- if {_cycle} is 2:
- broadcast "{@P}{@C} The cycle has changed to &lZombies and Zombie Pigmen"
- set {cycledamage} to {_cycle}
- if {_cycle} is 3:
- broadcast "{@P}{@C} The cycle has changed to &lPotion Effects"
- set {cycledamage} to {_cycle}
- if {_cycle} is 4:
- broadcast "{@P}{@C} The cycle has changed to &lSuffocation and Drowning"
- set {cycledamage} to {_cycle}
- if {_cycle} is 5:
- broadcast "{@P}{@C} The cycle has changed to &lExplosions"
- set {cycledamage} to {_cycle}
- if {_cycle} is 6:
- broadcast "{@P}{@C} The cycle has changed to &lSpiders and Cave Spiders"
- set {cycledamage} to {_cycle}
- if {_cycle} is 7:
- broadcast "{@P}{@C} The cycle has changed to &lEnderman"
- set {cycledamage} to {_cycle}
- if {_cycle} is 8:
- broadcast "{@P}{@C} The cycle has changed to &lSkeletons"
- set {cycledamage} to {_cycle}
- if {_cycle} is 9:
- broadcast "{@P}{@C} The cycle has changed to &lSilverfish"
- set {cycledamage} to {_cycle}
- if {_cycle} is 10:
- broadcast "{@P}{@C} The cycle has changed to &lFire"
- set {cycledamage} to {_cycle}
- command /DamageCycle <text>:
- permission: {@Perm}
- usage: /DamageCycle <On:Off>
- trigger:
- if arg-1 is "enable" or "on":
- set {DamageCycle} to true
- broadcast "{@P}{@C} Damage Cycle {@H}Enabled{@C}!"
- damagecycle()
- if arg-1 is "disable" or "off":
- delete {DamageCycle}
- broadcast "{@P}{@C} Damage Cycle {@H}Disabled{@C}!"
- every 5 minutes:
- if {damagecycle} is true:
- damagecycle()
- on damage of a player:
- if {damagecycle} is true:
- if {cycledamage} is 1:
- damage is caused by fall
- damage the victim by 201 hearts
- if {cycledamage} is 2:
- attacker is a zombie or zombie pigman
- damage the victim by 201 hearts
- if {cycledamage} is 3:
- if damage is caused by potion:
- damage the victim by 201 hearts
- if damage is caused by poison:
- damage the victim by 201 hearts
- if {cycledamage} is 4:
- if damage is caused by suffocation or drowning:
- damage the victim by 201 hearts
- if {cycledamage} is 5:
- if attacker is a creeper or ghast:
- damage the victim by 201 hearts
- if damage is caused by block explosion or entity explosion:
- damage the victim by 201 hearts
- if {cycledamage} is 6:
- attacker is a spider or cave spider
- damage the victim by 201 hearts
- if {cycledamage} is 7:
- attacker is a enderman
- damage the victim by 201 hearts
- if {cycledamage} is 8:
- attacker is a skeleton
- damage the victim by 201 hearts
- if {cycledamage} is 9:
- attacker is a silverfish
- damage the victim by 201 hearts
- if {cycledamage} is 10:
- damage is caused by fire
- damage the victim by 201 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement