Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. options:
  2. P: [&2Blast Mining&r]
  3.  
  4. command /blastmining [<text=toggle>]:
  5. permission: skript.op
  6. trigger:
  7. if arg-1 is "on" or "enable":
  8. set {blastmining} to true
  9. message "{@P} &7You've &aenabled Blast Mining&7!"
  10. else if arg-1 is "off" or "disable":
  11. delete {blastmining}
  12. message "{@P} &7You've &cdisabled &aBlast Mining&7!"
  13. else if arg-1 is "toggle":
  14. if {blastmining} is set:
  15. delete {blastmining}
  16. message "{@P} &7You've &cdisabled &aBlast Mining&7!"
  17. else:
  18. set {blastmining} to true
  19. message "{@P} &7You've &aenabled Blast Mining&7!"
  20. else:
  21. message "{@P} &a/blastmining &r<&aon&r:&coff&r:&7toggle&r>"
  22.  
  23. on mine of any ore or nether quartz ore:
  24. {blastmining} is set
  25. set {_blastmining} to a random integer between 0.9 and 100.1
  26. if {_blastmining} is less than 6:
  27. wait 5 ticks
  28. spawn 1 creeper at event-location
  29. apply slowness 2 to the last spawned creeper for 2 seconds
  30. else if {_blastmining} is greater than 97:
  31. set event-block to tnt
  32. wait 1 tick
  33. loop blocks in radius 1 of event-block:
  34. loop-block is air
  35. distance between loop-block and event-block is equal to 1
  36. set loop-block to redstone block
  37. set loop-block to air
  38. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement