Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function digF()
- while not turtle.forward() do
- turtle.dig()
- end
- end
- function moveF()
- while not turtle.dig() do
- turtle.forward()
- end
- end
- function tF()
- while turtle.getFuelLevel()==0 do
- turtle.refuel()
- end
- end
- print("Enter lenght vaule of corridor")
- local lenght=read()/2
- for i=1,lenght do
- tF()
- digF()
- moveF()
- end
Advertisement
Add Comment
Please, Sign In to add comment