Advertisement
RTS_Dmitriy

Untitled

Oct 5th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 1 - red
  2. -- 2 - black
  3. -- 3 - black
  4.  
  5.  
  6. my_valorant_art = {
  7.     {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, -- 19 red 0 black
  8.     {1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1}, -- 21 red 17 black
  9.     {1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1}, -- 23 red 34 black
  10.     {1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1}, -- 25 red 51 black
  11.     {1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1}, -- 33 red 62 black
  12.     {1, 2, 2, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1}, -- 41 red 9 black
  13. }
  14.  
  15. function buildLine(line)
  16.     for element = 1,#line do
  17.         slot = line[element]
  18.         if slot ~= 0 then
  19.           turtle.select(slot)
  20.           turtle.placeDown()
  21.         end
  22.         turtle.forward()
  23.     end
  24.  
  25.     for w = 1,#line do
  26.         turtle.back()
  27.     end
  28. end
  29.  
  30. function buildImage(image)
  31.     for stroka = 1,#image do
  32.         buildLine(image[stroka])
  33.         turtle.turnRight()
  34.         turtle.forward()
  35.         turtle.turnLeft()
  36.     end
  37.     turtle.turnLeft()
  38.     for storka = 1,#image do
  39.         turtle.forward()
  40.     end
  41.     turtle.turnRight()
  42. end
  43.  
  44. buildImage(my_valorant_art)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement