SHOW:
|
|
- or go back to the newest paste.
1 | -- 0 - nothing | |
2 | - | -- 1 - brown |
2 | + | -- 1 - obsidian |
3 | - | -- 2 - sand |
3 | + | -- 2 - stone |
4 | - | -- 3 - white wool |
4 | + | art = { |
5 | - | -- 4 - black wool |
5 | + | {{1, 2, 2, 2, 1}, |
6 | - | -- 5 - pink wool |
6 | + | {2, 0, 0, 0, 2}, |
7 | - | pic = { |
7 | + | {2, 0, 0, 0, 2}, |
8 | - | {0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0}, |
8 | + | {2, 0, 0, 0, 2}, |
9 | - | {0, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 0} |
9 | + | {1, 2, 2, 2, 1}}, |
10 | ||
11 | {{2, 0, 0, 0, 2}, | |
12 | - | row = 2 |
12 | + | {0, 0, 0, 0, 0}, |
13 | - | column = 1 |
13 | + | {0, 0, 0, 0, 0}, |
14 | - | slot = 0 |
14 | + | {0, 0, 0, 0, 0}, |
15 | - | for row=1, 2 do |
15 | + | {2, 0, 0, 0, 2}} |
16 | - | for column=1, 12 do |
16 | + | |
17 | - | slot = pic[row][column] |
17 | + | |
18 | - | if slot == 0 then |
18 | + | for depth=1, #art do |
19 | - | turtle.forward() |
19 | + | turtle.up() |
20 | - | else |
20 | + | for row=1, #art[depth] do |
21 | - | turtle.select(slot) |
21 | + | for column=1, #art[depth][row] do |
22 | - | turtle.placeDown() |
22 | + | slot = art[depth][row][column] |
23 | if slot == 0 then | |
24 | - | end |
24 | + | turtle.forward() |
25 | - | end |
25 | + | else |
26 | turtle.select(slot) | |
27 | - | turtle.forward() |
27 | + | turtle.placeDown() |
28 | turtle.forward() | |
29 | - | for column = 1, 12 do |
29 | + | end |
30 | - | turtle.back() |
30 | + | end |
31 | turtle.turnLeft() | |
32 | turtle.forward() | |
33 | turtle.turnRight() | |
34 | for column = 1, 5 do | |
35 | turtle.back() | |
36 | end | |
37 | end | |
38 | turtle.turnRight() | |
39 | for row=1, #art[depth] do | |
40 | turtle.forward() | |
41 | end | |
42 | turtle.turnLeft() | |
43 | end | |
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 |