Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: &8[&4Explosive Pickaxe&8]
- noperm: &cSorry, but you don't have the permission &f{@perm}
- perm: explosivepickaxe.get
- command /explosive:
- permission: {@perm}
- permission message: {@noperm}
- trigger:
- if player's tool is a pickaxe with lore "&8[&4Explosive&8]":
- send "{@p} &cYou are already holding a Pickaxe with &4Explosive &con!"
- else:
- if player's tool is a pickaxe:
- if player's balance is greater than 999:
- execute console command "eco take %player% 1000"
- send "{@p} &4Explosive &chas now been applied on your Pickaxe!"
- set lore of player's tool to "&8[&4Explosive&8]"
- else:
- send "{@p} &cYou don't have enough money to apply &4Explosive &con your Pickaxe! You need &f1K&c!"
- else:
- send "{@p} &cYou need to hold a pickaxe!"
- on break:
- if player's tool is a pickaxe with lore "&8[&4Explosive&8]":
- loop blocks in radius 5 around the targeted block:
- create a fake explosion at targeted block
- give loop-block to player
- set loop-block to air
- else:
- uncancel event
- # DONE! xD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement