Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("predictSimpleQuarry.lua")
- os.loadAPI("getTurtleFuel.lua")
- os.loadAPI("simpleQuarry.lua")
- os.loadAPI("turtleChest.lua")
- os.loadAPI("turtleForward.lua")
- function quarry(loop, choice)
- if choice == "left" then
- direction = 0
- elseif choice == "right" then
- direction = 1
- else
- os.exit(1)
- end
- width = 5
- length = 5
- depth = 27
- volume = width * length * depth * loop + (length * loop)
- width = width - 1
- x = 0
- while x < loop do
- simpleQuarry.quarry(width, length, depth)
- turtle.turnLeft()
- turtleChest.insertAll()
- turtle.turnRight()
- x = x + 1
- y = -2
- if direction == 0 then
- turtle.turnLeft()
- turtle.turnLeft()
- end
- while y < width do
- turtleForward.moveForward()
- y = y + 1
- end
- if direction == 0 then
- turtle.turnLeft()
- turtle.turnLeft()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement