kollinkoko

Golden Heads [SK]

Jul 3rd, 2016
1,405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. on script load:
  2. register new shaped recipe for 322 named "&6Golden Head" with lore "&dSome say consuming the head of a fallen foe strengthens the blood" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
  3.  
  4. command /headcraft [<text>]:
  5. permission: skript.op
  6. trigger:
  7. if arg 1 is equal to "on":
  8. if {headcraft} is true:
  9. message "Golden heads are already enabled"
  10. else:
  11. set {headcraft} to true
  12. broadcast "Golden heads enabled!"
  13. else if arg 1 is equal to "off":
  14. if {headcraft} is not set:
  15. message "Golden heads are already disabled"
  16. else:
  17. delete {headcraft}
  18. broadcast "Golden heads disabled"
  19.  
  20. on craft of golden apple:
  21. "%name of item%" contains "&6Golden Head":
  22. {headcraft} is false
  23. cancel event
  24.  
  25. command /headdrops [<text>]:
  26. permission: skript.op
  27. trigger:
  28. if arg 1 is equal to "on":
  29. if {headdrops} is true:
  30. message "Player heads are already enabled"
  31. else:
  32. set {headdrops} to true
  33. broadcast "Player heads enabled!"
  34. else if arg 1 is equal to "off":
  35. if {headdrops} is not set:
  36. message "Player heads are already disabled"
  37. else:
  38. delete {headdrops}
  39. broadcast "Player heads disabled"
  40.  
  41. on death of a player:
  42. {headdrops} is true
  43. drop victim's skull at location of victim
  44.  
  45. on consume of golden apple:
  46. "%name of player's tool%" contains "&6Golden Head":
  47. apply regeneration 2 to the player for 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment