View difference between Paste ID: bZJ4B0MZ and G0RkaBgi
SHOW: | | - or go back to the newest paste.
1-
-- 1 - white
1+
-- 1 - glass
2-
-- 2 - blue
2+
-- 2 - black
3
-- 3 - red
4
5-
     {1,2,2,2,1},
5+
-- 
6-
     {2,0,0,0,2}, 
6+
7-
     {2,0,0,0,2}, 
7+
     {0,0,0,2,2,0},
8-
     {2,0,0,0,2}, 
8+
     {0,0,2,3,3,2}, 
9-
     {1,2,2,2,1},
9+
     {0,2,3,3,3,2}, 
10
     {2,3,3,3,2,0}, 
11
     {0,2,3,3,3,2}, 
12-
art2 = { 
12+
     {0,0,2,3,3,2}, 
13-
     {1,0,0,0,1},
13+
     {0,0,0,2,2,0},
14-
     {0,0,0,0,0}, 
14+
15-
     {0,0,0,0,0}, 
15+
16-
     {0,0,0,0,0}, 
16+
17-
     {1,0,0,0,1},
17+
18
    for element = 1,#line do 
19
        slot = line[element]
20
        turtle.select(slot)
21
        turtle.placeDown()
22
        turtle.forward()
23-
		if slot ~= 0 then 
23+
24-
          turtle.select(slot)
24+
25-
       	  turtle.placeDown()
25+
26-
        end
26+
27
    end 
28
end
29
30
function buildImage(image)
31
    for stroka = 1,#image do
32
        buildLine(image[stroka])
33
        turtle.turnRight() 
34
        turtle.forward()
35
        turtle.turnLeft() 
36
    end
37
end
38
39
buildImage(art)
40