Platon777

Untitled

Sep 7th, 2024
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 0 - air
  2. -- 1 - black
  3. -- 2 - red
  4. -- 3 - grey
  5. -- 4 - white
  6.  
  7. --
  8.  
  9. function buildLine(line)
  10.     for element = 1,#line do
  11.         slot = line[element]
  12.         if slot ~= 0 then
  13.         turtle.select(slot)
  14.         turtle.placeDown()
  15.        end
  16.         turtle.forward()
  17.     end
  18.  
  19.     for w = 1,#line do
  20.         turtle.back()
  21.     end
  22. end
  23.  
  24. function buildImage(image)
  25.     for stroka = 1,#image do
  26.         buildLine(image[stroka])
  27.         turtle.turnRight()
  28.         turtle.forward()
  29.         turtle.turnLeft()
  30.     end
  31.     turtle.turnLeft()
  32.     for stroka = 1,#image do
  33.         turtle.forward()
  34.        end
  35.     turtle.turnRight()
  36.     turtle.up()
  37. end
  38. art = (=1,#1
  39.         slot =1[2]
  40.         turtle.select(2)
  41.         turtle.placeDown()
  42.        end
  43.         turtle.forward()
  44.     end
  45.  
  46.    
Advertisement
Add Comment
Please, Sign In to add comment