Guest User

test

a guest
Nov 7th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local moveforward = function(str)
  2. if str == "hallo" then
  3.   if turtle.detect()==0 then
  4.     print("stein")
  5.     turtle.forward()
  6.  
  7.  
  8.   elseif turtle.detect()==1 then
  9.     print("kein stein")
  10.     turtle.turnLeft()
  11.     turtle.turnLeft()
  12.     turtle.turnLeft()
  13.     turtle.turnLeft()
  14.   end
  15.   end
  16.     --return "0"
  17.     --print("return")
  18. end
  19.  
  20. while(true) do
  21.   print("gogo")
  22.   moveforward("hallo")
  23.   print("los")
  24. end
Advertisement
Add Comment
Please, Sign In to add comment