Advertisement
Randall123459

Blood Cycle

Jan 6th, 2017
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bBlood Cycle&f]
  4. C: &b
  5. H: &f
  6. CycleTime: 10
  7.  
  8. function bloodcycle(a: text = "default"):
  9. set {_cycle} to a random integer between 1 and 7
  10. if {_cycle} is 1:
  11. broadcast "{@P}{@C} The cycle has changed to &bDiamonds"
  12. set {cycle} to {_cycle}
  13. if {_cycle} is 2:
  14. broadcast "{@P}{@C} The cycle has changed to &6Gold"
  15. set {cycle} to {_cycle}
  16. if {_cycle} is 3:
  17. broadcast "{@P}{@C} The cycle has changed to &aEmerald"
  18. set {cycle} to {_cycle}
  19. if {_cycle} is 4:
  20. broadcast "{@P}{@C} The cycle has changed to &1Lapis"
  21. set {cycle} to {_cycle}
  22. if {_cycle} is 5:
  23. broadcast "{@P}{@C} The cycle has changed to &cRedstone"
  24. set {cycle} to {_cycle}
  25. if {_cycle} is 6:
  26. broadcast "{@P}{@C} The cycle has changed to &0Coal"
  27. set {cycle} to {_cycle}
  28. if {_cycle} is 7:
  29. broadcast "{@P}{@C} The cycle has changed to &7Iron"
  30. set {cycle} to {_cycle}
  31.  
  32. command /BloodCycle <text>:
  33. permission: {@Perm}
  34. usage: /BloodCycle <On:Off>
  35. trigger:
  36. if arg-1 is "enable" or "on":
  37. set {BloodCycle} to true
  38. broadcast "{@P}{@C} Blood Cycle {@H}Enabled{@C}!"
  39. bloodcycle()
  40. if arg-1 is "disable" or "off":
  41. delete {BloodCycle}
  42. broadcast "{@P}{@C} Blood Cycle {@H}Disabled{@C}!"
  43.  
  44. every {@CycleTime} minutes:
  45. if {bloodcycle} is true:
  46. bloodcycle()
  47.  
  48. on mine of diamond ore:
  49. if {cycle} is 1:
  50. chance of 75%:
  51. {bloodcycle} is true
  52. damage the player by 0.5 hearts
  53.  
  54. on mine of gold ore:
  55. if {cycle} is 2:
  56. chance of 50%:
  57. {bloodcycle} is true
  58. damage the player by 0.5 hearts
  59.  
  60. on mine of emerald ore:
  61. if {cycle} is 3:
  62. chance of 40%:
  63. {bloodcycle} is true
  64. damage the player by 0.5 hearts
  65.  
  66. on mine of lapis ore:
  67. if {cycle} is 4:
  68. chance of 30%:
  69. {bloodcycle} is true
  70. damage the player by 0.5 hearts
  71.  
  72. on mine of redstone ore:
  73. if {cycle} is 5:
  74. chance of 35%:
  75. {bloodcycle} is true
  76. damage the player by 0.5 hearts
  77.  
  78. on mine of coal ore:
  79. if {cycle} is 6:
  80. chance of 15%:
  81. {bloodcycle} is true
  82. damage the player by 0.5 hearts
  83.  
  84. on mine of iron ore:
  85. if {cycle} is 7:
  86. chance of 15%:
  87. {bloodcycle} is true
  88. damage the player by 0.5 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement