Advertisement
Dunklerdrache

Mining Turtle programm that doesn‘t work

Feb 9th, 2020
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. function D()
  2. if
  3. turtle.detect()
  4. then
  5.  
  6. turtle.dig()
  7. end
  8. end
  9.  
  10. function PD()
  11. if not
  12. turtle.detectDown()
  13. then
  14. turtle.select(2)
  15. turtle.placeDown()
  16. end
  17. end
  18.  
  19.  
  20. for a=1,3 do
  21. turtle.dig()
  22. turtle.forward()
  23. PD()
  24. D()
  25. turtle.digUp()
  26. end
  27.  
  28. turtle.turnRight()
  29.  
  30. for b=1,4 do
  31. turtle.dig()
  32. turtle.forward()
  33. PD()
  34. D()
  35. turtle.digUp()
  36. end
  37.  
  38. turtle.turnLeft()
  39. turtle.turnLeft()
  40.  
  41. for c=1,4 do
  42. turtle.forward()
  43. PD()
  44. D()
  45. end
  46.  
  47. for d=1,4 do
  48. turtle.dig()
  49. turtle.forward()
  50. PD()
  51. D()
  52. turtle.digUp()
  53. end
  54. turtle.turnRight()
  55. turtle.turnRight()
  56. end
  57.  
  58. for e=1,4 do
  59. turtle.forward()
  60. PD()
  61. D()
  62. end
  63.  
  64. turtle.turnLeft()
  65.  
  66. end
  67.  
  68. turtle.turnLeft()
  69. turtle.turnLeft()
  70. end
  71. for f=1,4 do
  72. turtle.forward()
  73. end
  74.  
  75. turtle.drop()
  76.  
  77. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement