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")
- --must be started with pick equipped and modem in first slot
- function oneTrip(x, y, z)
- path = {1}
- predictPath.resetFuelCost()
- predictPath.predict(x, y, z, path)
- predictPath.finalWrite(predictPath.getPath())
- fuelcost = predictPath.getFuelCost()
- if fuelcost > turtle.getFuelLevel() then
- getTurtleFuel.displayFuelInfo()
- print("Fuel Needed: " .. fuelcost)
- print("Fuel too Low to Start, Please Insert Buckets")
- return false
- end
- turtleToCords.toCords(predictPath.getDiffX(), predictPath.getDiffY(), predictPath.getDiffZ(), predictPath.getNegX(), predictPath.getNegY(), predictPath.getNegZ())
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement