Advertisement
Spatzenhirn123

Mine

Jul 15th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local args = {...}
  2. length = args[1]
  3.  
  4. function dig()
  5. while turtle.detect() do
  6. turtle.dig()
  7. os.sleep(0.5)
  8. end
  9. end
  10. function digUp()
  11. while turtle.detectUp() do
  12. turtle.digUp()
  13. os.sleep(0.5)
  14. end
  15. end
  16. function forward()
  17. while turtle.forward()==false do
  18. os.sleep(1)
  19. dig()
  20. end
  21. end
  22. for x=1,length,1 do
  23. dig()
  24. forward()
  25. turtle.digDown()
  26. turtle.down()
  27. turtle.turnRight()
  28.  
  29. turtle.digDown()
  30. for z=1,4,1 do
  31. dig()
  32. forward()
  33. digUp()
  34. turtle.digDown()
  35. end
  36. turtle.turnLeft()
  37. turtle.turnLeft()
  38. turtle.down()
  39. turtle.digDown()
  40. turtle.down()
  41. turtle.digDown()
  42. turtle.down()
  43. turtle.digDown()
  44. for r=1,4,1 do
  45. dig()
  46. forward()
  47. digUp()
  48. turtle.digDown()
  49. end
  50. turtle.up()
  51. turtle.up()
  52. turtle.up()
  53. turtle.turnRight()
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement