Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get UywmNSvy CollectAndRefuelLava
- local arg = ...
- if not arg then arg = 1 end
- arg = tonumber(arg)
- local fuel = turtle.getFuelLevel()
- local maxFuel = turtle.getFuelLimit()
- shell.run("delete lastPosition.txt")
- while fuel < maxFuel do
- shell.run("BucketLavaCollector " .. tostring(arg))
- shell.run("refuel all")
- fuel = turtle.getFuelLevel()
- end
- shell.run("BucketLavaCollector " .. tostring(arg))
Advertisement
Add Comment
Please, Sign In to add comment