SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. path = {1,1,2,1,1,2,1,0,1,0,1,2,1,1,2,1,1,2,1,1,1,1,0,4}
  2. current = 0
  3.  
  4.  
  5. if turtle.inspect() == true then
  6.     botania()
  7. else
  8.     break
  9. end
  10.  
  11. function botania()
  12.     turtle.suckDown(16)
  13.     turtle.turnRight()
  14.     turtle.turnRight()
  15.     turtle.forward()
  16.     current = 1
  17.     for i = 0, #path do
  18.         move()
  19.     end
  20. end
  21.  
  22. function move()
  23.     if path[current] == 0 then
  24.         turtle.turnLeft()
  25.     elseif path[current] == 0 then
  26.         turtle.dig()
  27.         turtle.forward()
  28.     elseif path[current] == 0 then
  29.         turtle.turnRight()
  30.     elseif path[current] == 4 then
  31.         turtle.forward()
  32.         for i = 1, 15 do
  33.             turtle.select(i)
  34.             turtle.drop()
  35.         end
  36.         turtle.turnRight()
  37.         turtle.forward()
  38.         turtle.turnLeft()
  39.     else
  40.         print("not pathed")
  41.     end
  42.     current = current + 1
  43. end
  44.  
  45. function dig()
  46.     turtle.select(1)
  47.     turtle.digDown()
  48.     turtle.placeDown()
  49. 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