Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs={...}
- times = tArgs[1]
- function forward()
- if turtle.forward() == false then
- if turtle.up() == true then
- forward()
- turtle.down()
- else
- shell.run('TurnLeft',1)
- forward()
- shell.run('TurnRight',1)
- forward()
- end
- sleep(0.25)
- end
- end
- for i=1,times do
- forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement