Advertisement
ObsidianDrache

chunkExcavation

Sep 29th, 2022
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. function line()
  2.     for i = 1, 15 do
  3.         turtle.digUp()
  4.         turtle.dig()
  5.         turtle.digDown()
  6.         turtle.forward()
  7.         end
  8.     end
  9.  
  10. function turnRightWay()
  11.     turtle.turnRight()
  12.         turtle.digUp()
  13.         turtle.dig()
  14.         turtle.digDown()
  15.     turtle.forward()
  16.     turtle.turnRight()
  17.     end
  18.  
  19. function turnLeftWay()
  20.     turtle.turnLeft()
  21.         turtle.digUp()
  22.         turtle.dig()
  23.         turtle.digDown()
  24.     turtle.forward()
  25.     turtle.turnLeft()
  26.     end
  27.  
  28. function layerRight()
  29.     for i = 1, 7 do
  30.         line()
  31.         turnRightWay()
  32.         line()
  33.         turnLeftWay()
  34.         end
  35.     turnleftWay()
  36.     line()
  37.     end
  38.  
  39. function layerLeft()
  40.     for i = 1, 15 do
  41.         line()
  42.         turnLeftWay()
  43.         line()
  44.         turnRightWay()
  45.         end
  46.     turnRightWay()
  47.     line()
  48.     end
  49.  
  50. function layerDown()
  51.     turtle.down()
  52.     turtle.digDown()
  53.     turtle.down()
  54.     turtle.digDown()
  55.     turtle.down()
  56.     turtle.turnLeft()
  57.     turtle.turnLeft()
  58.     end
  59.  
  60. layerRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement