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