SHARE
TWEET

Untitled

a guest Jul 12th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while(true) do
  2.  
  3.     digtunnel()
  4.     go(3)
  5.     digtunnel()
  6.     turtle.turnRight()
  7.     go(3)
  8.     turtle.turnLeft()
  9.  
  10. end
  11.  
  12.  
  13.  
  14.  
  15. function digtunnel()
  16.  
  17.     torch = 0
  18.  
  19.     for i = tonumber(args[2]) ,1,-1 do
  20.         torch = torch + 1
  21.  
  22.         turtle.digUp("left")
  23.         turtle.digDown("left")  
  24.         if torch%10 == 0 then
  25.  
  26.             turtle.placeDown()
  27.         end
  28.        
  29.        
  30.         turtle.dig("left")
  31.        
  32.         while (not(turtle.forward()))do
  33.             turtle.dig("left")
  34.             turtle.attack()
  35.         end
  36.    
  37.     end
  38.     turtle.turnRight()
  39.     turtle.turnRight()
  40.    
  41.     go(arg[2])
  42.     end
  43. end
  44.  
  45.  
  46. function go(far)
  47.  
  48.     for i=1 , tonumber(tonumber(far)) do
  49.         while (not(turtle.forward()))do
  50.             turtle.dig("left")
  51.             turtle.attack()
  52.         end
  53.        
  54.    
  55.     end
  56.    
  57. 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