Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local moveforward = function(str)
- if str == "hallo" then
- if turtle.detect()==0 then
- print("stein")
- turtle.forward()
- elseif turtle.detect()==1 then
- print("kein stein")
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- end
- --return "0"
- --print("return")
- end
- while(true) do
- print("gogo")
- moveforward("hallo")
- print("los")
- end
Advertisement
Add Comment
Please, Sign In to add comment