Guest User

Untitled

a guest
Oct 19th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. options:
  2. Perm: skript.op
  3. P: &6Vengeful Spirits
  4. C: &8
  5. H: &c
  6. W: &a
  7. V: &8»
  8.  
  9. command /VengefulSpirits <text>:
  10. permission: {@Perm}
  11. usage: /VengefulSpirits <On:Off>
  12. trigger:
  13. if arg-1 is "enable" or "on":
  14. set {VengefulSpirits} to true
  15. broadcast "{@P} {@V} {@W}Enabled{@C}!"
  16. if arg-1 is "disable" or "off":
  17. delete {VengefulSpirits}
  18. broadcast "{@P} {@V} {@H}Disabled{@C}!"
  19. if arg-1 is "toggle":
  20. if {VengefulSpirits} is set:
  21. command sender command "/VengefulSpirits off"
  22. else:
  23. command sender command "/VengefulSpirits on"
  24.  
  25. on death of player:
  26. {VengefulSpirits} is true:
  27. wait 1 tick
  28. y-coordinate of player is higher than 60:
  29. spawn 1 ghast at location 1 above (location of event-player)
  30. set max health of last spawned entity to 15
  31. heal last spawned entity
  32. set name of last spawned entity to "%player%"
  33. else if y-coordinate of player is less than 60:
  34. spawn 1 blaze at location 1 above (location of event-player)
  35. set max health of last spawned entity to 15
  36. heal last spawned entity
  37. set name of last spawned entity to "%player%"
  38.  
  39. on death of ghast:
  40. {VengefulSpirits} is true:
  41. set {_Head} to name of victim
  42. drop 1 player head named "%{_Head}%" at location of victim
  43.  
  44. on death of blaze:
  45. {VengefulSpirits} is true:
  46. set {_Head} to name of victim
  47. drop 1 player head named "%{_Head}%" at location of victim
  48.  
  49. on right click:
  50. {VengefulSpirits} is true
  51. player's tool is name tag
  52. cancel the event
  53. message "{@P}{@C} You cannot name things in this gamemode!"
Advertisement
Add Comment
Please, Sign In to add comment