SHARE
TWEET

FarmHemp.lua

a guest Feb 21st, 2020 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x=0
  2. function check_fuel()
  3.     for i= 1, 16 do
  4.         turtle.select(i)
  5.         if turtle.refuel(0) then
  6.             z = turtle.getItemCount(i)
  7.             if z >= 10 then
  8.                 turtle.refuel(10)
  9.             else
  10.                 turtle.refuel(z)
  11.             end
  12.         end
  13.    end
  14. end    
  15. while turtle.forward() == true do
  16. if turtle.refuel(0) then
  17. check_fuel()
  18. end
  19. turtle.turnRight()
  20. turtle.dig()
  21. turtle.turnLeft()
  22. turtle.turnLeft()
  23. turtle.dig()
  24. turtle.turnRight()
  25. x=x+1
  26. end
  27. turtle.turnLeft()
  28. turtle.turnLeft()
  29. while x~=0 do
  30. x=x-1
  31. turtle.forward()
  32. end
  33. turtle.turnLeft()
  34. turtle.turnLeft()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top