Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("predictSimpleQuarry.lua")
- os.loadAPI("userInput.lua")
- os.loadAPI("getTurtleFuel.lua")
- os.loadAPI("simpleQuarry.lua")
- os.loadAPI("turtleForward.lua")
- choice = 0
- while choice ~= 1 do
- width = tonumber(userInput.getUserInput("Enter Length: "))
- length = tonumber(userInput.getUserInput("Enter Width: "))
- depth = tonumber(userInput.getUserInput("Enter Depth"))
- tw = width
- tl = length
- td = depth
- if tw == 0 then
- tw = 1
- end
- if tl == 0 then
- tl = 1
- end
- if td == 0 then
- td = 1
- end
- volume = tw * tl * td
- width = width - 1
- print("Use a Preset?")
- choice = tonumber(userInput.getUserInput("Yes = 1, No = 2"))
- if choice == 1 then
- choice = tonumber(userInput.getUserInput("1 for sand, 2 for gravel"))
- if choice == 1 then
- blockname = "minecraft:sand"
- else
- blockname = "minecraft:gravel"
- end
- else
- blockname = userInput.getUserInput("Please Input Block ID")
- end
- print("Volume: " .. volume .. " blocks")
- if volume > 800 then
- print("WARNING! Volume over 800")
- print("Max is 1024 with Empty Inventory")
- print("With Stacks of 64.")
- end
- print("Proceed?")
- choice = tonumber(userInput.getUserInput("Yes = 1, No = 2"))
- end
- predictSimpleQuarry.predict(width, length, depth)
- fuelcost = predictSimpleQuarry.getFuelCost()
- if fuelcost > turtle.getFuelLevel() then
- getTurtleFuel.displayFuelInfo()
- print("Fuel too Low to Start, Please Insert Buckets")
- userInput.getUserInput("Type Anything to Refuel")
- shell.run("turtleRefuel.lua")
- end
- if fuelcost > turtle.getFuelLevel() then
- print("Fuel Still too Low to Start, Terminating Program")
- else
- simpleQuarry.smartQuarry(width, length, depth, blockname)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement