Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: uhc.staff
- P: &f[&bHead Hunters&f]
- C: &b
- H: &f
- command /HeadHunters <text>:
- permission: {@Perm}
- usage: /HeadHunters <On:Off>
- trigger:
- if arg-1 is "enable" or "on":
- set {HeadHunters} to true
- broadcast "{@P}{@C} Head Hunters {@H}Enabled{@C}!"
- if arg-1 is "disable" or "off":
- delete {HeadHunters}
- broadcast "{@P}{@C} Head Hunters {@H}Disabled{@C}!"
- on death of player:
- if {headhunters} is true:
- set {_blocks::*} to blocks in radius 1 around victim
- loop {_blocks::*}:
- loop-value is not air
- delete {_blocks::%loop-index%}
- set {_chestblock} to a random element out of {_blocks::*}
- set block at {_chestblock} to a chest
- add 1 of victim's skull to inventory of block at {_chestblock}
- while amount of player head in {_chestblock} is greater than or equal to 1:
- wait 5 seconds
- set block at {_chestblock} to air
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement