Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- P: &8[&cShovel Madness&8]&f
- command /shovelmadness <text=toggle>:
- usage: /shovelmadness <enable/disable>
- aliases: /shovelm, /sm
- permission: skript.op
- trigger:
- if arg 1 is "on" or "enable":
- set {ShovelMadness} to true
- broadcast "{@P} Has been enabled"
- if arg 1 is "off" or "disable":
- set {ShovelMadness} to false
- broadcast "{@P} Has been disabled"
- if arg 1 is "toggle":
- if {ShovelMadness} is true:
- set {ShovelMadness} to false
- broadcast "{@P} Has been disabled"
- else if {ShovelMadness} is false:
- set {ShovelMadness} to true
- broadcast "{@P} Has been enabled"
- on right click with diamond shovel:
- if {ShovelMadness} is true:
- if player's gamemode is creative:
- stop
- if {SM::%player%::cooldownSelf} is set:
- set {_waited} to difference between {SM::%player%::cooldownSelf} and now
- if {_waited} is less than 10 seconds:
- set {_timeleft} to difference between 10 seconds and {_waited}
- message "{@P} You have &c%{_timeleft}% &funtil you can launch another snowball!"
- stop
- make the player shoot snowball
- send "{@P} You launched a snowball!" to player
- set {SM::%player%::cooldownSelf} to now
- on damage:
- {ShovelMadness} is true:
- projectile is a snowball
- if {SM.projectiles::%projectile%} is set:
- damage victim by 0.3 hearts
- push the victim upwards at speed 0.2
- push the victim backwards at speed 0.7
- on shoot:
- if shooter's tool is diamond shovel:
- set {SM.projectiles::%projectile%} to shooter
Advertisement
Add Comment
Please, Sign In to add comment