Advertisement
Muzze77

Muzze Turtle TEst

Jan 5th, 2014
105
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. num5 = 0
  3. num6 = 0
  4. num9 = 0
  5. num10 = 0
  6. num1 = 0
  7.  
  8. turtle.select(1)
  9. while rs.getInput("top") == true do
  10. m = turtle.getFuelLevel()
  11. while m <= 5 do
  12. turtle.select(16)
  13. turtle.refuel(1)
  14. print(m)
  15. sleep(1)
  16. turtle.select(5)
  17.  
  18. end
  19. turtle.select(5)
  20. sleep(0.2)
  21. print(turtle.getFuelLevel() .. "Fuel")
  22. sleep(2)
  23. --#######################--
  24. turtle.suck()
  25. slot5 = turtle.getItemCount(5)
  26. slot5 = slot5-1
  27. print(" Turtle hat noch " .. slot5 .. " Sand im Slot 5")
  28. turtle.drop(slot5)
  29. sleep(1)
  30. --#######################--
  31. turtle.select(6)
  32. turtle.suck()
  33. slot6 = turtle.getItemCount(6)
  34. slot6 = slot6-1
  35. print(" Turtle hat noch " .. slot6 .. " Sand im Slot 6")
  36. turtle.drop(slot6)
  37. sleep(1)
  38. --#######################--
  39. turtle.select(9)
  40. turtle.suck()
  41. slot9 = turtle.getItemCount(9)
  42. slot9 = slot9-1
  43. print(" Turtle hat noch " .. slot9 .. " Sand im Slot 9")
  44. turtle.drop(slot9)
  45. sleep(1)
  46. --#######################--
  47. turtle.select(10)
  48. turtle.suck()
  49. slot10 = turtle.getItemCount(10)
  50. slot10 = slot10-1
  51. print(" Turtle hat noch " .. slot10 .. " Sand im Slot 10")
  52. turtle.drop(slot10)
  53. sleep(1)
  54. --#######################--
  55. turtle.select(1)
  56. sleep(1)
  57. turtle.craft()
  58. slot1 = turtle.getItemCount(1)
  59. print(" Turtle hat noch " .. slot1 .. " Sandstone im Slot 1")
  60. sleep(1)
  61.  
  62. --#######################--
  63. turtle.turnRight()
  64. sleep(0.2)
  65. turtle.drop()
  66. sleep(0.5)
  67. turtle.turnLeft()
  68. sleep(1)
  69. print("Done")
  70. end
  71. print("NoSig")
  72. sleep(0.3)
  73. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement