SHOW:
|
|
- or go back to the newest paste.
1 | -- | |
2 | W = { | |
3 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
4 | {0,0,0,0,1,1,1,1,0,0,0,0}, | |
5 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
6 | ||
7 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
8 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
9 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
10 | ||
11 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
12 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
13 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
14 | ||
15 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
16 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
17 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
18 | ||
19 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
20 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
21 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
22 | ||
23 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
24 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
25 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
26 | ||
27 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
28 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
29 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
30 | ||
31 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
32 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
33 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
34 | ||
35 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
36 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
37 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
38 | ||
39 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
40 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
41 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
42 | ||
43 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
44 | {0,0,0,1,0,0,0,0,1,0,0,0}, | |
45 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
46 | ||
47 | {{0,0,2,0,0,0,0,0,0,2,0,0}, | |
48 | {0,2,2,1,1,1,1,1,1,2,2,0}, | |
49 | {0,0,2,0,0,0,0,0,0,2,0,0},}, | |
50 | ||
51 | {{0,2,2,2,2,2,2,2,2,2,2,0}, | |
52 | {2,2,2,2,2,2,2,2,2,2,2,2}, | |
53 | {0,2,2,2,2,2,2,2,2,2,2,0},}, | |
54 | ||
55 | {{0,0,2,2,2,2,2,2,2,2,0,0}, | |
56 | {0,2,2,2,2,2,2,2,2,2,2,0}, | |
57 | {0,0,3,3,2,2,2,2,2,2,0,0},}, | |
58 | ||
59 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
60 | {0,0,0,0,0,4,4,0,0,0,0,0}, | |
61 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
62 | ||
63 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
64 | {0,0,0,0,0,4,4,0,0,0,0,0}, | |
65 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
66 | ||
67 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
68 | {0,0,0,0,0,4,4,0,0,0,0,0}, | |
69 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
70 | ||
71 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
72 | {0,0,0,0,0,4,4,0,0,0,0,0}, | |
73 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
74 | ||
75 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
76 | {0,0,0,0,0,3,3,0,0,0,0,0}, | |
77 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
78 | ||
79 | {{0,0,0,0,0,0,0,0,0,0,0,0}, | |
80 | {0,0,0,0,0,3,3,0,0,0,0,0}, | |
81 | {0,0,0,0,0,0,0,0,0,0,0,0},}, | |
82 | ||
83 | } | |
84 | ||
85 | ||
86 | -- #W - количество слоёв | |
87 | -- z - номер слоя | |
88 | for z = 1,#W do | |
89 | -- #W[z] - количество строк в слое z | |
90 | -- y - номер строки | |
91 | for y = 1,#W[z] do | |
92 | -- #W[z][y] - количество символов в строке y в слое z | |
93 | -- x - номер символа в строке | |
94 | for x = 1,#W[z][y] do | |
95 | slot = W[z][y][x] | |
96 | if slot ~= 0 then | |
97 | turtle.select(slot) | |
98 | turtle.placeDown() | |
99 | end | |
100 | turtle.forward() | |
101 | end | |
102 | -- Возвращение в начало строки | |
103 | for a = 1,#W[z][y] do | |
104 | turtle.back() | |
105 | end | |
106 | -- Переход на следующую строку | |
107 | turtle.turnLeft() | |
108 | turtle.forward() | |
109 | turtle.turnRight() | |
110 | end | |
111 | -- Возвращение в начало слоя | |
112 | turtle.turnRight() | |
113 | for A = 1,#W[z] do | |
114 | turtle.forward() | |
115 | end | |
116 | turtle.turnLeft() | |
117 | -- Переход на следующий слой | |
118 | turtle.up() | |
119 | end |