Advertisement
Olena_Kuznietsova

printer

Dec 6th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 1 - Red
  2. -- 2 - black
  3. -- 3 - glass
  4. art = {
  5.       {3,3,3,3,3,3,3,3},
  6.       {3,3,3,3,2,2,3,3},
  7.       {3,3,3,2,1,1,2,3},
  8.       {3,3,2,1,1,1,2,3},
  9.       {3,2,1,1,1,2,3,3},
  10.       {3,3,2,1,1,1,2,3},
  11.       {3,3,3,2,1,1,2,3},
  12.       {3,3,3,3,2,2,3,3},
  13.       {3,3,3,3,3,3,3,3},
  14. }
  15.  
  16.  
  17. function buildLine(line)
  18.   for i = 1, 8 do
  19.         slot = line[i]
  20.         turtle.select(slot)
  21.         turtle.placeDown()
  22.         turtle.forward()
  23.     end
  24.     for i = 1, 8 do
  25.        turtle.back()
  26.     end
  27.     turtle.turnRight()
  28.     turtle.forward()
  29.     turtle.turnLeft()
  30.  
  31. end
  32. for t = 1 , 9 do
  33.     art_line = art[t]
  34.     buildLine(art_line)
  35. end
  36.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement