Advertisement
Olena_Kuznietsova

printer

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