Advertisement
Spatzenhirn123

Turtle-Quarry-Chest

Apr 20th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. function Reihe()
  2. for p=1,7,1 do
  3. turtle.digUp()
  4. turtle.forward()
  5. turtle.forward()
  6. end
  7. turtle.digUp()
  8. turtle.forward()
  9. end
  10.  
  11.  
  12. function Fuel()
  13. for o=1,16,1 do
  14. turtle.select(o)
  15. turtle.refuel()
  16. end
  17. while turtle.getFuelLevel()<(200) do
  18. f=300-turtle.getFuelLevel()
  19. print(" ")
  20. print("--------------------------------")
  21. print("Need more Fuel in Slot 1/12!")
  22. print(f)
  23. print("--------------------------------")
  24. sleep(10)
  25. for o=1,16,1 do
  26. turtle.select(o)
  27. turtle.refuel()
  28. end
  29. end
  30. end
  31.  
  32.  
  33. Fuel()
  34. turtle.select(1)
  35. if turtle.detectDown()==true then
  36. for i=1,3,1 do
  37. Reihe()
  38. turtle.turnRight()
  39. turtle.forward()
  40. turtle.forward()
  41. turtle.turnRight()
  42. Reihe()
  43. turtle.turnLeft()
  44. turtle.forward()
  45. turtle.forward()
  46. turtle.turnLeft()
  47. end
  48. Reihe()
  49. turtle.turnRight()
  50. turtle.forward()
  51. turtle.forward()
  52. turtle.turnRight()
  53. Reihe()
  54. turtle.turnRight()
  55. for r=1,14,1 do
  56. turtle.forward()
  57. end
  58. turtle.turnRight()
  59. else
  60. print("--------------------------------")
  61. print("No surface bolow detected!")
  62. print("Do you want to build now?")
  63. print("Type -Decke-")
  64. print("--------------------------------")
  65. end
  66. shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement