Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: [&2Blast Mining&r]
- command /blastmining [<text=toggle>]:
- permission: skript.op
- trigger:
- if arg-1 is "on" or "enable":
- set {blastmining} to true
- message "{@P} &7You've &aenabled Blast Mining&7!"
- else if arg-1 is "off" or "disable":
- delete {blastmining}
- message "{@P} &7You've &cdisabled &aBlast Mining&7!"
- else if arg-1 is "toggle":
- if {blastmining} is set:
- delete {blastmining}
- message "{@P} &7You've &cdisabled &aBlast Mining&7!"
- else:
- set {blastmining} to true
- message "{@P} &7You've &aenabled Blast Mining&7!"
- else:
- message "{@P} &a/blastmining &r<&aon&r:&coff&r:&7toggle&r>"
- on mine of any ore or nether quartz ore:
- {blastmining} is set
- set {_blastmining} to a random integer between 0.9 and 100.1
- if {_blastmining} is less than 6:
- wait 5 ticks
- spawn 1 creeper at event-location
- apply slowness 2 to the last spawned creeper for 2 seconds
- else if {_blastmining} is greater than 97:
- set event-block to tnt
- wait 1 tick
- loop blocks in radius 1 of event-block:
- loop-block is air
- distance between loop-block and event-block is equal to 1
- set loop-block to redstone block
- set loop-block to air
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement