Guest User

Untitled

a guest
Oct 3rd, 2025
54
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={{4,4,4,4,1,1,1,4,4},
  7. {4,4,4,1,2,2,2,1,4},
  8. {4,4,1,2,3,3,2,2,1},
  9. {4,1,2,2,2,2,2,2,1},
  10. {1,2,2,2,2,2,2,1,4},
  11. {4,1,2,2,2,2,2,2,1},
  12. {4,4,1,2,2,2,2,2,1},
  13. {4,4,4,1,2,2,2,1,4},
  14. {4,4,4,4,1,1,1,4,4}
  15.   }
  16.  
  17. function buildLine (colors)
  18.     for i = 1,#colors do
  19.         slot = colors[i]
  20.         if slot~=0 then
  21.           turtle.select(slot)
  22.           turtle.placeDown()
  23.         end
  24.         turtle.forward()
  25.     end
  26.     turtle.turnRight()
  27.     turtle.forward()
  28.     turtle.turnLeft()
  29.     for e = 1,#colors do
  30.         turtle.back()
  31.     end
  32. end
  33.  
  34. for i=1,#art do
  35.  d=art[i]
  36.  buildLine(d)
  37. end
  38.  
  39.  
  40.  
Add Comment
Please, Sign In to add comment