SHARE
TWEET

Untitled

a guest Feb 25th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function main()
  2.     Fuel = turtle.getFuelLevel()
  3.     print(Fuel)
  4.     if Fuel > 100 then
  5.         if i < 12 then
  6.             move()
  7.         end
  8.         if i = 12 then
  9.             turn()
  10.         end
  11.     end
  12.     if Fuel < 100
  13.         turtle.select(16)
  14.         turtle.refuel(1)
  15.     end
  16.     main()
  17. end
  18.  
  19. functon move()
  20.     turtle.up()
  21.     turtle.dig()
  22.     turle.down()
  23.     turle.dig()
  24.     turtle.forward()
  25. end
  26.  
  27. function turn()
  28.     turtle.left()
  29.     turtle.forward()
  30.     turtle.forward()
  31.     turtle.left()
  32.     i = 0
  33.     main()
  34. end
  35. main()
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