Advertisement
RTS_Dmitriy

ALEX_SAVE_THIS

Nov 3rd, 2024 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. -- 1 - black
  2. -- 2 - red
  3. -- 3 - glass
  4.  
  5.  
  6. -- Данные
  7. art1 = {3, 3, 3, 3, 3, 3, 3}
  8. art2 = {3, 3, 3, 1, 1, 3, 3}
  9. art3 = {3, 3, 1, 2, 2, 1, 3}
  10. art4 = {3, 1, 2, 2, 1, 3, 3}
  11. art5 = {3, 3, 1, 2, 2, 1, 3}
  12. art6 = {3, 3, 3, 1, 1, 3, 3}
  13. art7 = {3, 3, 3, 3, 3, 3, 3}
  14.  
  15. -- Функции
  16. function buildLine(line)
  17.     for i = 1, #line do
  18.         x = line[i]
  19.         turtle.select(x)
  20.         turtle.placeDown()
  21.         turtle.forward()
  22.     end
  23.     turtle.turnRight()
  24.     turtle.forward()
  25.     turtle.turnLeft()
  26. end
  27.  
  28. -- Программа
  29. buildLine(art1)
  30. buildLine(art2)
  31. buildLine(art3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement