Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while not turtle.detectDown() do
- turtle.down()
- end
- function capU()
- while not turtle.detectUp() do
- turtle.up()
- for i=1,4 do
- turtle.turnLeft()
- if turtle.detect() then
- turtle.dig()
- end
- end
- end
- end
- function capD()
- while not turtle.detectDown() do
- turtle.down()
- for i=1,4 do
- turtle.turnLeft()
- if turtle.detect() then
- turtle.dig()
- end
- end
- end
- end
- function out()
- for i=1,16 do
- turtle.select(i)
- turtle.drop()
- end
- end
- while 1<2 do
- capU()
- os.sleep(60)
- capD()
- out()
- print("Fuel: "..turtle.getFuelLevel())
- os.sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement