View difference between Paste ID: WeF7Zgfn and DixV3T7n
SHOW: | | - or go back to the newest paste.
1
-- 0 - air
2
-- 1 - black
3
-- 2 - red
4
5
-- 
6
7
8
function buildLine(line)
9
    for element = 1,#line do 
10
        slot = line[element]
11
        if slot ~= 0 then
12
        turtle.select(slot)
13
        turtle.placeDown()
14
       end
15
        turtle.forward()
16
    end
17
18
    for w = 1,#line do 
19
        turtle.back() 
20
    end 
21
end
22
23
function buildImage(image)
24
    for stroka = 1,#image do
25
        buildLine(image[stroka])
26
        turtle.turnRight() 
27
        turtle.forward()
28
        turtle.turnLeft() 
29
    end
30
    turtle.turnLeft()
31
    for stroka = 1,#image do
32
        turtle.forward()
33
       end
34
    turtle.turnRight()
35
    turtle.up()
36
end
37
art = { 
38-
     {1,2,2,1},
38+
     {1,2,1},
39-
     {2,0,0,2},
39+
     {2,0,2},
40-
     {2,0,0,2},
40+
     {1,2,1},
41-
     {1,2,2,1},
41+
42
43
buildImage(art)
44
art2 = { 
45
     {2,0,2},
46-
     {2,0,0,2},
46+
     {0,0,0},
47-
     {0,0,0,0},
47+
     {2,0,2},
48-
     {0,0,0,0},
48+
49-
     {2,0,0,2},
49+
50
art2 = { 
51
     {2,0,2},
52
     {0,0,0},
53-
     {2,0,0,2},
53+
     {2,0,2},
54-
     {0,0,0,0},
54+
55-
     {0,0,0,0},
55+
56-
     {2,0,0,2},
56+
57
     {1,2,1},
58
     {2,0,2},
59
     {1,2,1},
60-
     {1,2,2,1},
60+
    
61-
     {2,0,0,2},
61+
62-
     {2,0,0,2},
62+
63-
     {1,2,2,1},
63+
64
buildImage(art)
65
buildImage(art2)
66
buildImage(art2)
67
buildImage(art)
68
69
buildImage(art)
70
buildImage(art2)
71
buildImage(art2)
72
buildImage(art)
73
74
75
turtle.turnRight()
76
77
for i = 1, 12 do
78
turtle.forward()
79
end
80-
for i = 1, 10 do
80+
81
for q = 1, 9 do
82
turtle.Down()
83
end
84-
for q = 1, 12 do
84+
85
buildImage(art)
86
buildImage(art2)
87
buildImage(art2)
88
buildImage(art)
89
90
buildImage(art)
91
buildImage(art2)
92
buildImage(art2)
93
buildImage(art)
94
95
buildImage(art)
96
buildImage(art2)
97
buildImage(art2)
98
buildImage(art)
99
100
for i = 1, 12 do
101
turtle.forward()
102
end
103-
for i = 1, 10 do
103+
104
for q = 1, 9 do
105
turtle.Down()
106
end
107-
for q = 1, 12 do
107+
108
buildImage(art)
109
buildImage(art2)
110
buildImage(art2)
111
buildImage(art)
112
113
buildImage(art)
114
buildImage(art2)
115
buildImage(art2)
116
buildImage(art)
117
118
buildImage(art)
119
buildImage(art2)
120
buildImage(art2)
121
buildImage(art)
122
123
for i = 1, 12 do
124
turtle.forward()
125
end
126-
for i = 1, 10 do
126+
127
for q = 1, 9 do
128
turtle.Down()
129
end
130-
for q = 1, 12 do
130+
131
buildImage(art)
132
buildImage(art2)
133
buildImage(art2)
134
buildImage(art)
135
136
buildImage(art)
137
buildImage(art2)
138
buildImage(art2)
139
buildImage(art)
140
141
buildImage(art)
142
buildImage(art2)
143
buildImage(art2)
144
buildImage(art)
145
146
for i = 1, 12 do
147
turtle.forward()
148
end
149-
for i = 1, 10 do
149+
150
151