Randall123459

Veingeful Spirits

Jan 5th, 2017
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bVengeful Spirits&f]
  4. C: &b
  5. H: &f
  6.  
  7. command /VengefulSpirits <text>:
  8. permission: {@Perm}
  9. usage: /VengefulSpirits <On:Off>
  10. trigger:
  11. if arg-1 is "enable" or "on":
  12. set {VengefulSpirits} to true
  13. broadcast "{@P}{@C} Vengeful Spirits {@H}Enabled{@C}!"
  14. if arg-1 is "disable" or "off":
  15. delete {VengefulSpirits}
  16. broadcast "{@P}{@C} Vengeful Spirits {@H}Disabled{@C}!"
  17.  
  18. on death of player:
  19. {VengefulSpirits} is true
  20. wait 1 tick
  21. spawn 1 ghast at location 1 above (location of event-player)
  22. set max health of last spawned entity to 15
  23. heal last spawned entity
  24. set name of last spawned entity to "%player%"
  25.  
  26. on death of ghast:
  27. {VengefulSpirits} is true
  28. set {_Head} to name of victim
  29. drop 1 player head named "%{_Head}%" at location 1 above (location of victim)
  30.  
  31. on right click:
  32. {VengefulSpirits} is true
  33. player's tool is name tag
  34. cancel the event
  35. message "{@P}{@C} You cannot name things in this gamemode!"
Advertisement
Add Comment
Please, Sign In to add comment