Advertisement
eleeet

уровни

Oct 18th, 2020 (edited)
2,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. local r = require("robot")
  2. local comp = require("component")
  3. local computer = require("computer")
  4. ---------------------------------
  5. function el1()--ставим 1 элементы схемы
  6. r.select(6)--стекло
  7. r.forward()
  8. r.place()
  9. r.back()
  10. r.select(1)--уровень
  11. r.place()
  12. r.select(2)--кабель
  13. r.place()
  14. r.select(3)--шина
  15. r.place()
  16. r.turnLeft()
  17. end
  18.  
  19. function ur()
  20. for i=1,4 do
  21. el1()
  22. end
  23. r.select(4)--сундук
  24. r.up()
  25. r.placeDown()
  26. end
  27.  
  28. function base()
  29. r.up()
  30. r.up()
  31. r.select(2)--кабель
  32. r.placeDown()
  33. r.select(5)--p2p
  34. r.placeDown()
  35. for m=1,4 do
  36. r.select(7)--плотный кабель
  37. r.place()
  38. r.turnLeft()
  39. end
  40. r.up()
  41. r.placeDown()
  42. end
  43. ---------------------------------------------
  44. base()
  45. for a=1,4 do
  46. ur()
  47. end
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement