Advertisement
Randall123459

Damage Cycle

Jan 6th, 2017
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bDamage Cycle&f]
  4. C: &b
  5. H: &f
  6.  
  7. function damagecycle(a: text = "default"):
  8. set {_cycle} to a random integer between 1 and 10
  9. if {_cycle} is 1:
  10. broadcast "{@P}{@C} The cycle has changed to &lFalling"
  11. set {cycledamage} to {_cycle}
  12. if {_cycle} is 2:
  13. broadcast "{@P}{@C} The cycle has changed to &lZombies and Zombie Pigmen"
  14. set {cycledamage} to {_cycle}
  15. if {_cycle} is 3:
  16. broadcast "{@P}{@C} The cycle has changed to &lPotion Effects"
  17. set {cycledamage} to {_cycle}
  18. if {_cycle} is 4:
  19. broadcast "{@P}{@C} The cycle has changed to &lSuffocation and Drowning"
  20. set {cycledamage} to {_cycle}
  21. if {_cycle} is 5:
  22. broadcast "{@P}{@C} The cycle has changed to &lExplosions"
  23. set {cycledamage} to {_cycle}
  24. if {_cycle} is 6:
  25. broadcast "{@P}{@C} The cycle has changed to &lSpiders and Cave Spiders"
  26. set {cycledamage} to {_cycle}
  27. if {_cycle} is 7:
  28. broadcast "{@P}{@C} The cycle has changed to &lEnderman"
  29. set {cycledamage} to {_cycle}
  30. if {_cycle} is 8:
  31. broadcast "{@P}{@C} The cycle has changed to &lSkeletons"
  32. set {cycledamage} to {_cycle}
  33. if {_cycle} is 9:
  34. broadcast "{@P}{@C} The cycle has changed to &lSilverfish"
  35. set {cycledamage} to {_cycle}
  36. if {_cycle} is 10:
  37. broadcast "{@P}{@C} The cycle has changed to &lFire"
  38. set {cycledamage} to {_cycle}
  39.  
  40. command /DamageCycle <text>:
  41. permission: {@Perm}
  42. usage: /DamageCycle <On:Off>
  43. trigger:
  44. if arg-1 is "enable" or "on":
  45. set {DamageCycle} to true
  46. broadcast "{@P}{@C} Damage Cycle {@H}Enabled{@C}!"
  47. damagecycle()
  48. if arg-1 is "disable" or "off":
  49. delete {DamageCycle}
  50. broadcast "{@P}{@C} Damage Cycle {@H}Disabled{@C}!"
  51.  
  52. every 5 minutes:
  53. if {damagecycle} is true:
  54. damagecycle()
  55.  
  56. on damage of a player:
  57. if {damagecycle} is true:
  58. if {cycledamage} is 1:
  59. damage is caused by fall
  60. damage the victim by 201 hearts
  61. if {cycledamage} is 2:
  62. attacker is a zombie or zombie pigman
  63. damage the victim by 201 hearts
  64. if {cycledamage} is 3:
  65. if damage is caused by potion:
  66. damage the victim by 201 hearts
  67. if damage is caused by poison:
  68. damage the victim by 201 hearts
  69. if {cycledamage} is 4:
  70. if damage is caused by suffocation or drowning:
  71. damage the victim by 201 hearts
  72. if {cycledamage} is 5:
  73. if attacker is a creeper or ghast:
  74. damage the victim by 201 hearts
  75. if damage is caused by block explosion or entity explosion:
  76. damage the victim by 201 hearts
  77. if {cycledamage} is 6:
  78. attacker is a spider or cave spider
  79. damage the victim by 201 hearts
  80. if {cycledamage} is 7:
  81. attacker is a enderman
  82. damage the victim by 201 hearts
  83. if {cycledamage} is 8:
  84. attacker is a skeleton
  85. damage the victim by 201 hearts
  86. if {cycledamage} is 9:
  87. attacker is a silverfish
  88. damage the victim by 201 hearts
  89. if {cycledamage} is 10:
  90. damage is caused by fire
  91. damage the victim by 201 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement