Advertisement
Randall123459

HeadHunters skript

Jun 14th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bHead Hunters&f]
  4. C: &b
  5. H: &f
  6.  
  7. command /HeadHunters <text>:
  8. permission: {@Perm}
  9. usage: /HeadHunters <On:Off>
  10. trigger:
  11. if arg-1 is "enable" or "on":
  12. set {HeadHunters} to true
  13. broadcast "{@P}{@C} Head Hunters {@H}Enabled{@C}!"
  14. if arg-1 is "disable" or "off":
  15. delete {HeadHunters}
  16. broadcast "{@P}{@C} Head Hunters {@H}Disabled{@C}!"
  17.  
  18. on death of player:
  19. if {headhunters} is true:
  20. set {_blocks::*} to blocks in radius 1 around victim
  21. loop {_blocks::*}:
  22. loop-value is not air
  23. delete {_blocks::%loop-index%}
  24. set {_chestblock} to a random element out of {_blocks::*}
  25. set block at {_chestblock} to a chest
  26. add 1 of victim's skull to inventory of block at {_chestblock}
  27. while amount of player head in {_chestblock} is greater than or equal to 1:
  28. wait 5 seconds
  29. set block at {_chestblock} to air
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement