Advertisement
RTS_Dmitriy

printer_by_pavlik

Nov 29th, 2024 (edited)
26
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.  
  5. art = {
  6.     {3, 3, 3, 3, 3, 3, 3, 3},
  7.     {3, 3, 3, 3, 2, 2, 3, 3},
  8.     {3, 3, 3, 2, 1, 1, 2, 3},
  9.     {3, 3, 2, 1, 1, 1, 2, 3},
  10.     {3, 2, 1, 1, 1, 2, 3, 3},
  11.     {3, 3, 2, 1, 1, 1, 2, 3},
  12.     {3, 3, 3, 2, 1, 1, 2, 3},
  13.     {3, 3, 3, 3, 2, 2, 3, 3},
  14.     {3, 3, 3, 3, 3, 3, 3, 3}
  15. }
  16.  
  17.  
  18. function buildLine(line)
  19.     for i = 1, 8 do
  20.         slot = line[i]
  21.         turtle.select(slot)
  22.         turtle.placeDown()
  23.         turtle.forward()
  24.     end
  25.     for i = 1, 8 do
  26.         turtle.back()
  27.     end
  28.     turtle.turnRight()
  29.     turtle.forward()
  30.     turtle.turnLeft()
  31. end
  32.  
  33. for row = 1, 9 do
  34.    art_line = art[row]
  35.    buildLine(art_line)
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement