Advertisement
yukki10

Untitled

Jul 20th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. on right click holing a stick:
  2. if player's pitch is between -50 and 50:
  3. add 2 to y-coord of {_1}
  4. subtract 1 from y-coord of {_2}
  5. if player's horizontal facing is west or east:
  6. add 1 to z-coord of {_1}
  7. add 1 to x-coord of {_1}
  8. subtract 1 from z-coord of {_2}
  9. subtract 1 from x-coord of {_2}
  10. loop blocks within {_1} to {_2}:
  11. loop-block is dirt
  12. set loop-block to air
  13. execute console command "scoreboard players add %player% getpoint 1"
  14. stop
  15. loop-block is grass
  16. set loop-block to air
  17. execute console command "scoreboard players add %player% getpoint 1"
  18. stop
  19. else if player's horizontal facing is north or south:
  20. add 1 to x-coord of {_1}
  21. add 1 to z-coord of {_1}
  22. subtract 1 from x-coord of {_2}
  23. subtract 1 from z-coord of {_2}
  24. loop blocks within {_1} to {_2}:
  25. loop-block is dirt
  26. set loop-block to air
  27. execute console command "scoreboard players add %player% getpoint 1"
  28. stop
  29. loop-block is grass
  30. set loop-block to air
  31. execute console command "scoreboard players add %player% getpoint 1"
  32. stop
  33. else:
  34. add 1 to x-coord of {_1}
  35. add 1 to z-coord of {_1}
  36. subtract 1 from x-coord of {_2}
  37. subtract 1 from z-coord of {_2}
  38. loop blocks within {_1} to {_2}:
  39. loop-block is dirt
  40. set loop-block to air
  41. execute console command "scoreboard players add %player% getpoint 1"
  42. stop
  43. loop-block is grass
  44. set loop-block to air
  45. execute console command "scoreboard players add %player% getpoint 1"
  46. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement