Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: uhc.staff
- P: &f[&bBlood Cycle&f]
- C: &b
- H: &f
- CycleTime: 10
- function bloodcycle(a: text = "default"):
- set {_cycle} to a random integer between 1 and 7
- if {_cycle} is 1:
- broadcast "{@P}{@C} The cycle has changed to &bDiamonds"
- set {cycle} to {_cycle}
- if {_cycle} is 2:
- broadcast "{@P}{@C} The cycle has changed to &6Gold"
- set {cycle} to {_cycle}
- if {_cycle} is 3:
- broadcast "{@P}{@C} The cycle has changed to &aEmerald"
- set {cycle} to {_cycle}
- if {_cycle} is 4:
- broadcast "{@P}{@C} The cycle has changed to &1Lapis"
- set {cycle} to {_cycle}
- if {_cycle} is 5:
- broadcast "{@P}{@C} The cycle has changed to &cRedstone"
- set {cycle} to {_cycle}
- if {_cycle} is 6:
- broadcast "{@P}{@C} The cycle has changed to &0Coal"
- set {cycle} to {_cycle}
- if {_cycle} is 7:
- broadcast "{@P}{@C} The cycle has changed to &7Iron"
- set {cycle} to {_cycle}
- command /BloodCycle <text>:
- permission: {@Perm}
- usage: /BloodCycle <On:Off>
- trigger:
- if arg-1 is "enable" or "on":
- set {BloodCycle} to true
- broadcast "{@P}{@C} Blood Cycle {@H}Enabled{@C}!"
- bloodcycle()
- if arg-1 is "disable" or "off":
- delete {BloodCycle}
- broadcast "{@P}{@C} Blood Cycle {@H}Disabled{@C}!"
- every {@CycleTime} minutes:
- if {bloodcycle} is true:
- bloodcycle()
- on mine of diamond ore:
- if {cycle} is 1:
- chance of 75%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
- on mine of gold ore:
- if {cycle} is 2:
- chance of 50%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
- on mine of emerald ore:
- if {cycle} is 3:
- chance of 40%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
- on mine of lapis ore:
- if {cycle} is 4:
- chance of 30%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
- on mine of redstone ore:
- if {cycle} is 5:
- chance of 35%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
- on mine of coal ore:
- if {cycle} is 6:
- chance of 15%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
- on mine of iron ore:
- if {cycle} is 7:
- chance of 15%:
- {bloodcycle} is true
- damage the player by 0.5 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement