Advertisement
kama6012

Friend of Miner & WoodCutter

May 3rd, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. on load:
  2. broadcast "&r[DuoMiner]Loaded!!"
  3. broadcast "&r[DuoMiner]/cutall,/mineallが使えます"
  4.  
  5. command /cutall:
  6. trigger:
  7. if {cutall::%player%} is true:
  8. set {cutall::%player%} to false
  9. message "&r[DuoMiner]Cutをオフにしました"
  10. else:
  11. set {cutall::%player%} to true
  12. message "&r[DuoMiner]Cutをオンにしました"
  13.  
  14. command /mineall:
  15. trigger:
  16. if {mineall::%player%} is true:
  17. set {mineall::%player%} to false
  18. message "&r[DuoMiner]DuoMineをオフにしました"
  19. else:
  20. set {mineall::%player%} to true
  21. message "&r[DuoMiner]DuoMineをオンにしました"
  22.  
  23. on mine:
  24. player's tool is axe
  25. {cutall::%player%} is true
  26. set {_locx} to x location of the block
  27. set {_locy} to y location of the block
  28. set {_locz} to z location of the block
  29. loop 30 times:
  30. set {_locy} to {_locy} + 1
  31. if block at location at {_locx}, {_locy}, {_locz} is not any plank or log:
  32. exit
  33. break block at location at {_locx}, {_locy}, {_locz} naturally with player's tool
  34. player's tool isn't unbreakable
  35. damage player's tool by 1
  36.  
  37. on mine:
  38. player's tool is pickaxe
  39. {mineall::%player%} is true
  40. if block above event-block isn't bedrock or barrier or end portal frame or command block or air:
  41. if event-block is not any ore:
  42. break block above event-block naturally with player's tool
  43. player's tool isn't unbreakable
  44. damage player's tool by 1
  45. else:
  46. loop all blocks in radius 5 around event-block:
  47. loop-block is any ore
  48. break loop-block naturally with player's tool
  49. player's tool isn't unbreakable
  50. damage player's tool by 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement