Advertisement
Guest User

build

a guest
Nov 28th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. function fuel()
  6. fuellv = turtle.getFuelLevel()
  7.  if fuellv < 10 then
  8.    turtle.select(1)
  9.    turtle.refuel(1)
  10.  end
  11. end
  12.  
  13. function stock()
  14. turtle.select(1)
  15. turtle.suck()
  16. fuel()
  17. turtle.turnLeft()
  18. turtle.forward()
  19. turtle.turnRight()
  20. turtle.select(2)
  21. turtle.suck()
  22. fuel()
  23. turtle.turnLeft()
  24. turtle.forward()
  25. turtle.turnRight()
  26. turtle.select(3)
  27. turtle.suck()
  28. turtle.select(4)
  29. turtle.suck()
  30. fuel()
  31. turtle.turnLeft()
  32. turtle.forward()
  33. turtle.turnRight()
  34. turtle.select(5)
  35. turtle.suck()
  36. turtle.select(6)
  37. turtle.suck()
  38. fuel()
  39. turtle.turnRight()
  40.   for i=1,3 do  
  41.   turtle.forward()
  42.   end
  43. end
  44.  
  45. function stockposition()
  46. print("in progress!!!")  
  47.  
  48. end
  49.  
  50. function direction()
  51.  
  52. end
  53. print("hello!")
  54. stock()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement