Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("predictPath.lua")
- os.loadAPI("turtleToCords.lua")
- os.loadAPI("userInput.lua")
- os.loadAPI("getTurtleFuel.lua")
- cx, cy, cz = gps.locate()
- tx = tonumber(userInput.getUserInput("X Cord: "))
- ty = tonumber(userInput.getUserInput("Y Cord: "))
- tz = tonumber(userInput.getUserInput("Z Cord: "))
- predictPath.predictTwo(x, y, z, cx, cy, cz)
- fuelcost = predictPath.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
- turtleToCords.toCords(x, y, z)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement