Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local fl = turtle.getFuelLevel()
  2. local laps = 0
  3. local round = 0
  4. local ia = turtle.getItemCount()
  5. local loop = 1
  6. local do_once_1 = 0
  7. local down = 1
  8. rednet.open("right")
  9.  
  10. while loop == 1 do
  11. if fl == 0 then --{{Checks Fuel Level}}--
  12. turtle.select(1)
  13. if ia == 0 then
  14. rednet.send(18, "Fl = 0")
  15. write("Insert Some Fuel In Slot 1...")
  16. break
  17. end
  18. turtle.refuel(1)
  19. end
  20. if round == 8 then
  21. if laps == 4 then
  22. break
  23. end
  24. round = 0
  25. turtle.turnLeft()
  26. laps = laps + 1
  27. end
  28. if down == 1 then
  29. turtle.digDown()
  30. turtle.down()
  31. down = 0
  32. end
  33. turtle.digForward()
  34. turtle.forward()
  35. round = round + 1
  36. rednet.send(18, fl)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement