Guest User

Untitled

a guest
Dec 8th, 2014
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Options:
  2. P: &8[&cShovel Madness&8]&f
  3.  
  4. command /shovelmadness <text=toggle>:
  5. usage: /shovelmadness <enable/disable>
  6. aliases: /shovelm, /sm
  7. permission: skript.op
  8. trigger:
  9. if arg 1 is "on" or "enable":
  10. set {ShovelMadness} to true
  11. broadcast "{@P} Has been enabled"
  12.  
  13. if arg 1 is "off" or "disable":
  14. set {ShovelMadness} to false
  15. broadcast "{@P} Has been disabled"
  16.  
  17. if arg 1 is "toggle":
  18. if {ShovelMadness} is true:
  19. set {ShovelMadness} to false
  20. broadcast "{@P} Has been disabled"
  21. else if {ShovelMadness} is false:
  22. set {ShovelMadness} to true
  23. broadcast "{@P} Has been enabled"
  24.  
  25. on right click with diamond shovel:
  26. if {ShovelMadness} is true:
  27.  
  28. if player's gamemode is creative:
  29. stop
  30.  
  31. if {SM::%player%::cooldownSelf} is set:
  32. set {_waited} to difference between {SM::%player%::cooldownSelf} and now
  33. if {_waited} is less than 10 seconds:
  34. set {_timeleft} to difference between 10 seconds and {_waited}
  35. message "{@P} You have &c%{_timeleft}% &funtil you can launch another snowball!"
  36. stop
  37.  
  38. make the player shoot snowball
  39.  
  40. send "{@P} You launched a snowball!" to player
  41. set {SM::%player%::cooldownSelf} to now
  42.  
  43. on damage:
  44. {ShovelMadness} is true:
  45. projectile is a snowball
  46. if {SM.projectiles::%projectile%} is set:
  47. damage victim by 0.3 hearts
  48. push the victim upwards at speed 0.2
  49. push the victim backwards at speed 0.7
  50.  
  51. on shoot:
  52. if shooter's tool is diamond shovel:
  53. set {SM.projectiles::%projectile%} to shooter
Advertisement
Add Comment
Please, Sign In to add comment