Advertisement
Blue_Tec

Untitled

Mar 17th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. on break:
  2. if {skill.active.%player%} is true:
  3. execute console command "say"
  4. else:
  5. if player can build at targeted block:
  6. if player is holding a pickaxe:
  7. if {seichi.skill.normal.%player%} is true:
  8. loop blocks in radius 1.8 around the targeted block:
  9. if loop-block is coal ore:
  10. give player 1 coal
  11. set loop-block to air
  12. if loop-block is diamond ore:
  13. give player 1 diamond
  14. set loop-block to air
  15. if loop-block is gold ore:
  16. give player 1 gold ore
  17. set loop-block to air
  18. if loop-block is iron ore:
  19. give player 1 iron ore
  20. set loop-block to air
  21. if loop-block is stone:
  22. give player 1 cobble stone
  23. set loop-block to air
  24. if loop-block is dirt:
  25. give player 1 dirt
  26. set loop-block to air
  27. if loop-block is grass:
  28. give player 1 grass
  29. set loop-block to air
  30.  
  31. command /unlock [<text>]:
  32. permission: unlockskill.admin
  33. trigger:
  34. if arg-1 is not set:
  35. message "&c/unlock <skill>"
  36. if arg-1 is set:
  37. set {seichi.skill.normal.%player%} to true
  38.  
  39. on rightclick:
  40. if player is sneaking:
  41. if player is holding a pickaxe:
  42. if {skill.active.%player%} is true:
  43. set {skill.active.%player%} to false
  44. message "&6スキルを &aON &6にしました"
  45. execute console command "/playsound block.wood_button.click_on block %player% ~ ~ ~ 25555"
  46. stop
  47. else:
  48. set {skill.active.%player%} to true
  49. message "&6スキルを &aOFF &6にしました"
  50. execute console command "/playsound block.wood_button.click_on block %player% ~ ~ ~ 25555"
  51. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement