RTS_Dmitriy

Untitled

Oct 3rd, 2025
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --black1
  2. --red2
  3. --wite3
  4. --empty4
  5.  
  6. art={
  7.     {0,0,0,0,1,1,1,0,0},
  8.     {0,0,0,1,2,2,2,1,0},
  9.     {0,0,1,2,3,3,2,2,1},
  10.     {0,1,2,2,2,2,2,2,1},
  11.     {1,2,2,2,2,2,2,1,0},
  12.     {0,1,2,2,2,2,2,2,1},
  13.     {0,0,1,2,2,2,2,2,1},
  14.     {0,0,0,1,2,2,2,1,0},
  15.     {0,0,0,0,1,1,1,0,0}
  16. }
  17.  
  18. function buildLine (colors)
  19.     for i = 1,#colors do
  20.         slot = colors[i]
  21.         if slot~=0 then
  22.           turtle.select(slot)
  23.           turtle.placeDown()
  24.         end
  25.         turtle.forward()
  26.     end
  27.     turtle.turnRight()
  28.     turtle.forward()
  29.     turtle.turnLeft()
  30.     for e = 1,#colors do
  31.         turtle.back()
  32.     end
  33. end
  34.  
  35. for i=1,#art do
  36.  line=art[i]
  37.  buildLine(line)
  38. end
  39.  
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment