Advertisement
Susceptance

tunnel

Apr 25th, 2022
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function digSection()
  2.     for i=1, 5 do
  3.         turtle.dig("right")
  4.         turtle.forward()
  5.     end
  6. end
  7.  
  8. function fromRight(r)
  9.     turtle.turnLeft()
  10.    
  11.     for i=1, 2 do
  12.         digSection()
  13.         turtle.turnRight()
  14.         turtle.turnRight()
  15.         turtle.digUp("right")
  16.         turtle.up()
  17.     end
  18.     digSection()
  19.     turtle.turnRight()
  20.     turtle.down()
  21.     turtle.down()
  22.    
  23.     if r == true then
  24.         turtle.dig("right")
  25.         turtle.forward()
  26.         fromLeft(false)
  27.     end
  28. end
  29.  
  30. function fromLeft(r)
  31.     turtle.turnRight()
  32.     for i=1, 2 do
  33.         digSection()
  34.         turtle.turnLeft()
  35.         turtle.turnLeft()
  36.         turtle.digUp("right")
  37.         turtle.up()
  38.     end
  39.     digSection()
  40.     turtle.turnLeft()
  41.     turtle.down()
  42.     turtle.down()
  43.    
  44.     if r == true then
  45.         turtle.dig("right")
  46.         turtle.forward()
  47.         fromRight(false)
  48.     end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement