Advertisement
ObsidianDrache

chunkExcavation

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