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