Advertisement
Muzze77

Muzze Turtle TEst 2

Jan 5th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. --test--
  2. local num1 = 0
  3. local num2 = 0
  4. local num5 = 0
  5. local num6 = 0
  6. local num15 = 0
  7. print(m)
  8.  
  9. turtle.select(2)
  10. while rs.getInput("top") == true do
  11.  
  12. turtle.select(2)
  13. sleep(0.2)
  14. print(turtle.getFuelLevel() .. "Fuel")
  15. sleep(2)
  16. --#######################--
  17. turtle.suck()
  18. slot1 = turtle.getItemCount(1)
  19. slot1 = slot1-1
  20. print(" Turtle hat noch " .. slot2 .. " Clay im Slot 1")
  21. turtle.drop(slot1)
  22. sleep(1)
  23. --#######################--
  24. turtle.select(2)
  25. turtle.suck()
  26. slot2 = turtle.getItemCount(2)
  27. slot2 = slot2-1
  28. print(" Turtle hat noch " .. slot2 .. " Clay im Slot 2")
  29. turtle.drop(slot2)
  30. sleep(1)
  31. --#######################--
  32. turtle.select(5)
  33. turtle.suck()
  34. slot5 = turtle.getItemCount(5)
  35. slot5 = slot5-1
  36. print(" Turtle hat noch " .. slot5 .. " Clay im Slot 5")
  37. turtle.drop(slot5)
  38. sleep(1)
  39. --#######################--
  40. turtle.select(6)
  41. turtle.suck()
  42. slot6 = turtle.getItemCount(6)
  43. slot6 = slot6-1
  44. print(" Turtle hat noch " .. slot6 .. " Sand im Slot 6")
  45. turtle.drop(slot6)
  46. sleep(1)
  47. --#######################--
  48. turtle.select(1)
  49. sleep(1)
  50. turtle.craft()
  51. slot1 = turtle.getItemCount(1)
  52. print(" Turtle hat noch " .. slot1 .. " Clay im Slot 1")
  53. sleep(1)
  54.  
  55. --#######################--
  56. turtle.turnRight()
  57. sleep(0.2)
  58. turtle.drop()
  59. sleep(0.5)
  60. turtle.turnLeft()
  61. sleep(1)
  62. print("Done")
  63. end
  64.  
  65. print("NoSig")
  66. local m = turtle.getFuelLevel()
  67. while m <= 5 do
  68. turtle.select(16)
  69. turtle.refuel(1)
  70. print(m)
  71. sleep(1)
  72. end
  73. sleep(0.3)
  74. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement