Advertisement
ObsidianDrache

chunkExcavation

Sep 28th, 2022
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. function line()
  2.     for i = 1, 15 do
  3.         print(i)
  4.         turtle.digUp()
  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, 15 do
  31.         line()
  32.         turnRightWay()
  33.         line()
  34.         turnLeftWay()
  35.         end
  36.     end
  37.  
  38. function layerLeft()
  39.     for i = 1, 15 do
  40.         line()
  41.         turnLeftWay()
  42.         line()
  43.         turnRightWay()
  44.         end
  45.     end
  46.  
  47. function layerDown()
  48.     turtle.down()
  49.     turtle.digDown()
  50.     turtle.down()
  51.     turtle.digDown()
  52.     turtle.down()
  53.     turtle.turnLeft()
  54.     turtle.turnLeft()
  55.     end
  56.  
  57. layerRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement