Advertisement
Guest User

Miner

a guest
Jul 21st, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. print("Mining Software")
  2. local Tunnel_length = 100
  3. local way = 0
  4.  
  5. function DigRow()
  6. turtle.dig()
  7. turtle.digUp()
  8. turtle.digDown()
  9. end
  10.  
  11. function DigAll()
  12. turtle.dig()
  13. turtle.forward()
  14. DigRow()
  15. turtle.turnRight()
  16. turtle.dig()
  17. turtle.forward()
  18. DigRow()
  19. turtle.turnLeft()
  20. turtle.turnLeft()
  21. turtle.forward()
  22. turtle.dig()
  23. turtle.forward()
  24. DigRow()
  25. turtle.turnRight()
  26. turtle.turnRight()
  27. turtle.forward()
  28. turtle.turnLeft()
  29. end
  30.  
  31.  
  32. turtle.refuel(1)
  33. repeat
  34. DigAll()
  35. way = way+1
  36. until way == 100
  37. turtle.turnLeft()
  38. turtle.turnLeft()
  39. way=0
  40. repeat
  41. turtle.forward()
  42. way = way+1
  43. until way == 100
  44. turtle.turnLeft()
  45. turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement