Advertisement
Guest User

filler

a guest
Jan 16th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. s=1
  2. turtle.turnLeft()
  3. lft=turtle.detect()
  4. turtle.turnRight()
  5. if(lft==true) then
  6.   ok=0
  7. else
  8.   ok=1
  9. end
  10. turtle.select(s)
  11. turtle.back()
  12.  
  13. while true do
  14.   pl=turtle.place()
  15.   if(pl==true) then
  16.     bk=turtle.back()
  17.     if(bk==false and ok==0) then
  18.       turtle.turnLeft()
  19.       turtle.back()
  20.       turtle.place()
  21.       turtle.turnLeft()  
  22.       turtle.back()
  23.       ok=1
  24.     elseif(bk==false and ok==1) then
  25.       turtle.turnRight()
  26.       turtle.back()
  27.       turtle.place()
  28.       turtle.turnRight()
  29.       turtle.back()
  30.       ok=0
  31.     end
  32.     else
  33.       s=s+1      
  34.       turtle.select(s)
  35.       if(s==16) then
  36.         turtle.place()
  37.         for i=1,15 do
  38.           turtle.select(i)
  39.           turtle.suck()
  40.         end
  41.         s=1
  42.         turtle.dig()
  43.         turtle.select(s)      
  44.       end  
  45.   end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement