Advertisement
CelticCoder

QuarryShaft

Jan 1st, 2024 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("predictSimpleQuarry.lua")
  2. os.loadAPI("getTurtleFuel.lua")
  3. os.loadAPI("simpleQuarry.lua")
  4. os.loadAPI("turtleChest.lua")
  5. os.loadAPI("turtleForward.lua")
  6.  
  7.  
  8. function quarry(loop, choice)
  9.     if choice == "left" then
  10.         direction = 0
  11.     elseif choice == "right" then
  12.         direction = 1
  13.     else
  14.         os.exit(1)
  15.     end
  16.     width = 5
  17.     length = 5
  18.     depth = 27
  19.     volume = width * length * depth * loop + (length * loop)
  20.     width = width - 1
  21.     x = 0
  22.     while x < loop do
  23.         simpleQuarry.quarry(width, length, depth)
  24.         turtle.turnLeft()
  25.         turtleChest.insertAll()
  26.         turtle.turnRight()
  27.         x = x + 1
  28.         y = -2
  29.         if direction == 0 then
  30.             turtle.turnLeft()
  31.             turtle.turnLeft()
  32.         end
  33.         while y < width do
  34.             turtleForward.moveForward()
  35.             y = y + 1
  36.         end
  37.         if direction == 0 then
  38.             turtle.turnLeft()
  39.             turtle.turnLeft()
  40.         end
  41.     end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement