Advertisement
Guest User

test

a guest
Dec 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. x = 0
  2. y = 0
  3. dir = "north"
  4. function check()
  5. if dir == "north" then
  6. if y*-1 == X then
  7. turtle.turnRight()
  8. dir = "east"
  9. end
  10. end
  11. end
  12.  
  13. function forward()
  14. turtle.forward()
  15. switch (dir)
  16. case "north": y=y+1
  17. case "south": y=y-1
  18. case "west": x=x-1
  19. case "east": x=x+1
  20. end
  21. check()
  22. end
  23. while true do
  24.  
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement