Advertisement
RTS_Dmitriy

LINE2

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