bobthegear

Turt_Bob

Aug 7th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. function dete()
  2. local x = 1
  3. repeat turtle.dig(i)
  4. until x == 10
  5. end
  6.  
  7. function FW()
  8. turtle.digUp()
  9. turtle.digDown()
  10. turtle.dig()
  11. if turtle.detect() == true then
  12. dete()
  13. turtle.forward()
  14. else
  15. turtle.forward()
  16. end
  17. end
  18.  
  19.  
  20. function R()
  21. turtle.turnRight()
  22. for o = 1, 3 do
  23. FW()
  24. end
  25. turtle.turnRight()
  26. end
  27.  
  28. function L()
  29. turtle.turnLeft()
  30. for o= 1, 3 do
  31. FW()
  32. end
  33. turtle.turnLeft()
  34. end
  35.  
  36. function comp()
  37. while turtle.compareTo(16) == true or
  38. turtle.compareTo(15) == true or
  39. turtle.compareTo(14) == true do
  40. turtle.dropDown()
  41. end
  42. end
  43.        
  44. function DD()
  45. for d = 1, 13 do
  46. turtle.select(d)
  47. comp()
  48. end
  49. end
  50.  
  51. function FWII()
  52. for i = 1, 50 do
  53. FW()
  54. end
  55. R()
  56. for i = 1, 50 do
  57. FW()
  58. end
  59. L()
  60. DD()
  61. end
  62.  
  63. for z = 1, 5 do
  64. FWII(z)
  65. end
Advertisement
Add Comment
Please, Sign In to add comment