SHARE
TWEET

Untitled

a guest Aug 18th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local j = 0
  2.  
  3. function reful()
  4.     if turtle.getFuelLevel() < 2 then
  5.        
  6.         j = j+1
  7.         if j > 14 then
  8.             j = 1
  9.         end
  10.        
  11.         turtle.select(j)
  12.         turtle.refuel(1)
  13.  
  14.     end
  15. end
  16.  
  17. for i=0, 2 do
  18.  
  19.     reful()
  20.     turtle.dig()
  21.     while turtle.detect() do
  22.         reful()
  23.         turtle.dig()
  24.     end
  25.     reful()
  26.     turtle.forward()
  27.  
  28.     reful()
  29.     turtle.digUp()
  30.     while turtle.detectUp() do
  31.         reful()
  32.         turtle.digUp()
  33.     end
  34.     reful()
  35.     turtle.digDown()
  36.  
  37.     reful()
  38.     turtle.turnRight()
  39.     reful()
  40.     turtle.dig()
  41.     while turtle.detect() do
  42.         reful()
  43.         turtle.dig()
  44.     end
  45.     reful()
  46.     turtle.forward()
  47.  
  48.     reful()
  49.     turtle.digUp()
  50.     while turtle.detectUp() do
  51.         reful()
  52.         turtle.digUp()
  53.     end
  54.     reful()
  55.     turtle.digDown()
  56.  
  57.     reful()
  58.     turtle.dig()
  59.     while turtle.detect() do
  60.         reful()
  61.         turtle.dig()
  62.     end
  63.     reful()
  64.     turtle.forward()
  65.  
  66.     reful()
  67.     turtle.digUp()
  68.     while turtle.detectUp() do
  69.         reful()
  70.         turtle.digUp()
  71.     end
  72.     reful()
  73.     turtle.digDown()
  74.  
  75.     reful()
  76.     turtle.dig()
  77.     while turtle.detect() do
  78.         reful()
  79.         turtle.dig()
  80.     end
  81.     reful()
  82.     turtle.forward()
  83.  
  84.     reful()
  85.     turtle.digUp()
  86.     while turtle.detectUp() do
  87.         reful()
  88.         turtle.digUp()
  89.     end
  90.     reful()
  91.     turtle.digDown()
  92.  
  93.     reful()
  94.     turtle.turnLeft()
  95.     reful()
  96.     turtle.turnLeft()
  97.     reful()
  98.     turtle.forward()
  99.     reful()
  100.     turtle.forward()
  101.     reful()
  102.     turtle.forward()
  103.     reful()
  104.     turtle.turnRight()
  105.  
  106. 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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top