RTS_Dmitriy

Line

May 4th, 2025 (edited)
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 1 - black
  2. -- 2 - gray
  3. -- 3 - red
  4. -- 4 - white
  5. -- 5 - glass
  6.  
  7. art = {
  8.     {5, 5, 5, 5, 1, 1, 1, 5, 5},
  9.     {5, 5, 5, 1, 2, 2, 3, 1, 5},
  10.     {5, 5, 1, 2, 3, 3, 3, 3, 1},
  11.     {5, 1, 2, 3, 3, 3, 3, 3, 1},
  12.     {1, 3, 3, 3, 3, 3, 3, 1, 5}
  13. }
  14.  
  15. function buildLine(slots)
  16.     for i = 1, #slots do
  17.       item = slots[i] -- element iz slots
  18.       turtle.select(item)
  19.       turtle.placeDown()
  20.       turtle.forward()
  21.     end
  22.     for i = 1, #slots do
  23.        turtle.back()
  24.     end
  25.     turtle.turnRight()
  26.     turtle.forward()
  27.     turtle.turnLeft()
  28. end
  29.  
  30. for i = 1, #art do
  31.     buildLine(art[i])
  32. end
  33.  
  34.  
Add Comment
Please, Sign In to add comment