Advertisement
Guest User

bruecke

a guest
Aug 1st, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1.  
  2. function platz()
  3.   for i=1,l do
  4.  
  5.     if turtle.getItemCount(s) == 0 then
  6.       s=s+1
  7.       turtle.select(s)
  8.     end
  9.     if s < 17 then  
  10.       turtle.forward()
  11.       turtle.placeDown()
  12.     end  
  13.   end
  14. end -- function platz
  15.  
  16. print("laenge:")
  17. l=read()
  18. print("Zurueck = j")
  19. z=read()
  20. s=1
  21. turtle.select(s)
  22. platz()
  23. turtle.turnLeft()
  24. turtle.forward()
  25. turtle.placeDown()
  26. turtle.turnLeft()
  27. platz()
  28. turtle.up()
  29. turtle.turnRight()
  30. turtle.forward()
  31. turtle.turnRight()
  32. platz()
  33. turtle.turnRight()
  34. turtle.forward()
  35. turtle.forward()
  36. turtle.forward()
  37. turtle.turnRight()
  38. platz()  
  39. if z == "j" then
  40.   turtle.turnRight()
  41.   turtle.forward()
  42.   turtle.down()
  43.   turtle.turnRight()
  44.   for i=1,l do
  45.     turtle.forward()
  46.   end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement