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