Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function a()
- for i=0,6 do
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.dig()
- turtle.turnRight()
- end
- end
- function Left()
- for i=0,5 do
- if i==1 or i==5 then
- turtle.turnLeft()
- else
- turtle.forward()
- end
- end
- end
- function Right()
- for i=0,5 do
- if i==1 or i==5 then
- turtle.turnRight()
- else
- turtle.forward()
- end
- end
- end
- continue=true
- while continue do
- if turtle.getFuelLevel()<=80 then
- if turtle.suckDown(1) then
- turtle.refuel(1)
- else
- continue=false
- term.clear()
- term.setCursorPos(1,1)
- term.write("NO FUEL")
- end
- end
- if continue then
- a()
- Left()
- a()
- Right()
- a()
- Left()
- a()
- turtle.forward()
- turtle.turnLeft()
- for i=0,8 do
- if i==6 then
- turtle.dropDown()
- end
- turtle.forward()
- end
- turtle.turnLeft()
- sleep(120)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement