Advertisement
Olena_Kuznietsova

printer

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