SHARE
TWEET

Untitled

a guest Aug 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local j = 0
  2.  
  3. for i=0, 2 do
  4.  
  5.     turtle.dig()
  6.     while turtle.detect() do
  7.         turtle.dig()
  8.     end
  9.     turtle.forward()
  10.  
  11.     turtle.digUp()
  12.     while turtle.detectUp() do
  13.         turtle.digUp()
  14.     end
  15.     turtle.digDown()
  16.  
  17.     turtle.turnRight()
  18.     turtle.dig()
  19.     while turtle.detect() do
  20.         turtle.dig()
  21.     end
  22.     turtle.forward()
  23.  
  24.     turtle.digUp()
  25.     while turtle.detectUp() do
  26.         turtle.digUp()
  27.     end
  28.     turtle.digDown()
  29.  
  30.     turtle.dig()
  31.     while turtle.detect() do
  32.         turtle.dig()
  33.     end
  34.     turtle.forward()
  35.  
  36.     turtle.digUp()
  37.     while turtle.detectUp() do
  38.         turtle.digUp()
  39.     end
  40.     turtle.digDown()
  41.  
  42.     turtle.dig()
  43.     while turtle.detect() do
  44.         turtle.dig()
  45.     end
  46.     turtle.forward()
  47.  
  48.     turtle.digUp()
  49.     while turtle.detectUp() do
  50.         turtle.digUp()
  51.     end
  52.     turtle.digDown()
  53.  
  54.     turtle.turnLeft()
  55.     turtle.turnLeft()
  56.     turtle.forward()
  57.     turtle.forward()
  58.     turtle.forward()
  59.     turtle.turnRight()
  60.    
  61.     if turtle.getFuelLevel() < 2 then
  62.        
  63.         j = j+1
  64.         if j > 14 then
  65.             j = 1
  66.         end
  67.        
  68.         turtle.select(j)
  69.         turtle.refuel(1)
  70.  
  71.     end
  72.  
  73. end
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