Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local waitTime = 20
- function dropAll()
- for x=1,16 do
- turtle.select(x)
- turtle.dropDown()
- end
- end
- function getFuel()
- while (turtle.getFuelLevel() < 1000) do
- turtle.select(1)
- if turtle.suckUp() then
- turtle.refuel()
- else
- print('No Fuel Found - Waiting 20 seconds')
- os.sleep(20)
- end
- dropAll()
- end
- end
- while true do
- turtle.digDown()
- turtle.forward()
- if turtle.detect() then
- if rs.getInput("front") then
- dropAll()
- getFuel()
- sleep(waitTime)
- end
- turtle.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement