Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("simpleQuarry.lua")
- os.loadAPI("turtleChest.lua")
- os.loadAPI("getTurtleFuel.lua")
- width = 14 --"Enter Length: "
- length = 1 --"Enter Width: "
- depth = 2 --"Enter Depth"
- function line()
- turtle.digDown()
- turtle.down()
- turtle.digDown()
- turtle.down()
- turtle.up()
- turtle.up()
- simpleQuarry.quarry(width, length, depth)
- end
- function nextLine()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function skipWater()
- turtle.turnRight()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function cutBlock()
- line()
- nextLine()
- line()
- end
- function forward(loop)
- while loop ~= 0 do
- turtle.forward()
- loop = loop - 1
- end
- end
- function returnToStart()
- turtle.turnLeft()
- forward(13)
- turtle.turnLeft()
- turtleChest.insertAll()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- while true do
- if turtle.inspect() then
- cutBlock()
- skipWater()
- cutBlock()
- skipWater()
- cutBlock()
- skipWater()
- cutBlock()
- skipWater()
- cutBlock()
- returnToStart()
- getTurtleFuel.displayFuelInfo()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement