Advertisement
yozora_1202

Untitled

Jun 19th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. options:
  2. p: &8[&4Explosive Pickaxe&8]
  3. noperm: &cSorry, but you don't have the permission &f{@perm}
  4. perm: explosivepickaxe.get
  5.  
  6. command /explosive:
  7. permission: {@perm}
  8. permission message: {@noperm}
  9. trigger:
  10. if player's tool is a pickaxe with lore "&8[&4Explosive&8]":
  11. send "{@p} &cYou are already holding a Pickaxe with &4Explosive &con!"
  12. else:
  13. if player's tool is a pickaxe:
  14. if player's balance is greater than 999:
  15. execute console command "eco take %player% 1000"
  16. send "{@p} &4Explosive &chas now been applied on your Pickaxe!"
  17. set lore of player's tool to "&8[&4Explosive&8]"
  18. else:
  19. send "{@p} &cYou don't have enough money to apply &4Explosive &con your Pickaxe! You need &f1K&c!"
  20. else:
  21. send "{@p} &cYou need to hold a pickaxe!"
  22.  
  23. on break:
  24. if player's tool is a pickaxe with lore "&8[&4Explosive&8]":
  25. loop blocks in radius 5 around the targeted block:
  26. create a fake explosion at targeted block
  27. give loop-block to player
  28. set loop-block to air
  29. else:
  30. uncancel event
  31.  
  32. # DONE! xD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement