Randall123459

BloodCycle Skript

Jun 9th, 2016
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff #Permission
  3. P: &f[&bBlood Cycle&f] # Prefix
  4. C: &b # Main
  5. H: &f # Highlight
  6. CycleTime: 10# How many minutes you would like it to cycle
  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. damage the player by 0.5 hearts
  52.  
  53. on mine of gold ore:
  54. if {cycle} is 2:
  55. chance of 50%:
  56. damage the player by 0.5 hearts
  57.  
  58. on mine of emerald ore:
  59. if {cycle} is 3:
  60. chance of 40%:
  61. damage the player by 0.5 hearts
  62.  
  63. on mine of lapis ore:
  64. if {cycle} is 4:
  65. chance of 30%:
  66. damage the player by 0.5 hearts
  67.  
  68. on mine of redstone ore:
  69. if {cycle} is 5:
  70. chance of 35%:
  71. damage the player by 0.5 hearts
  72.  
  73. on mine of coal ore:
  74. if {cycle} is 6:
  75. chance of 15%:
  76. damage the player by 0.5 hearts
  77.  
  78. on mine of iron ore:
  79. if {cycle} is 7:
  80. chance of 15%:
  81. damage the player by 0.5 hearts
Advertisement
Add Comment
Please, Sign In to add comment