Advertisement
ObsidianDrache

chunkExcavation

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