Hopfi

straight_mining_shaft

May 8th, 2021
566
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. -- builds 2x2 straight mining shaft
  3. -- place in front of wall
  4.  
  5. N = 30
  6.  
  7. function digHole(N)
  8.     for i=1,N,1 do
  9.         turtle.dig()
  10.         turtle.forward()
  11.     end
  12.    
  13.     for i=1,N,1 do
  14.         turtle.back()
  15.     end
  16. end
  17.  
  18.  
  19. turtle.refuel()
  20.  
  21. digHole(N)
  22. turtle.digUp()
  23. turtle.up()
  24. digHole(N)
  25. turtle.down()
  26.  
  27. turtle.turnLeft()
  28. turtle.dig()
  29. turtle.forward()
  30. turtle.turnRight()
  31. digHole(N)
  32. turtle.digUp()
  33. turtle.up()
  34. digHole(N)
  35. turtle.down()
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
RAW Paste Data