Platon777

Untitled

Aug 17th, 2024
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 1 - glass
  2. -- 2 - black
  3. -- 3 - red
  4.  
  5. --
  6. art = {
  7.      {0,0,0,2,2,0},
  8.      {0,0,2,3,3,2},
  9.      {0,2,3,3,3,2},
  10.      {2,3,3,3,2,0},
  11.      {0,2,3,3,3,2},
  12.      {0,0,2,3,3,2},
  13.      {0,0,0,2,2,0},
  14. }
  15.  
  16.  
  17. function buildLine(line)
  18.     for element = 1,#line do
  19.         slot = line[element]
  20.         turtle.select(slot)
  21.         turtle.placeDown()
  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. end
  38.  
  39. buildImage(art)
  40.  
Advertisement
Add Comment
Please, Sign In to add comment