Advertisement
koki2000

tetőző

Oct 16th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. local run = true
  2. local ertek = 0
  3. local circle = 0
  4. local vege = 0
  5.  
  6. function dig()
  7. turtle.forward()
  8. end
  9.  
  10. function input()
  11. if ertek == 0 then
  12. print("mennyit menjek elore")
  13. ertek = read()
  14. ertek = ertek + 0
  15. end
  16. if circle == 0 then
  17. print("hany korben?")
  18. circle = read()
  19. circle = circle + 0
  20. end
  21. end
  22. end
  23.  
  24. function main()
  25. for i = 1, ertek do
  26. dig()
  27. if i == ertek then
  28. turtle.turnLeft()
  29. turtle.forward()
  30. turtle.turnLeft()
  31. end
  32.  
  33.  
  34. for j = 1, ertek do
  35. turtle.place()
  36. turtle.up()
  37. turtle.forward()
  38. if j == ertek then
  39. turtle.turnRight()
  40. turtle.forward()
  41. turtle.turnRight()
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement