SHOW:
|
|
- or go back to the newest paste.
1 | - | art = {1, 2, 1, 2, 3, 3, 2, 1, 2, 1} |
1 | + | -- 0 - empty |
2 | - | for n = 1, 10 do |
2 | + | -- 1 - black |
3 | - | slot = art[n] |
3 | + | -- 2 - red |
4 | - | turtle.select(slot) |
4 | + | art = { |
5 | - | turtle.placeDown() |
5 | + | { |
6 | - | turtle.forward() |
6 | + | {2, 1, 1, 2}, |
7 | - | end |
7 | + | {1, 0, 0, 1}, |
8 | - | for i = 1, 10 do |
8 | + | {1, 0, 0, 1}, |
9 | - | turtle.back() |
9 | + | {2, 1, 1, 2}, |
10 | - | end |
10 | + | }, |
11 | - | turtle.turnRight() |
11 | + | { |
12 | - | turtle.forward() |
12 | + | {1, 0, 0, 1}, |
13 | - | turtle.turnLeft() |
13 | + | {0, 0, 0, 0}, |
14 | {0, 0, 0, 0}, | |
15 | {1, 0, 0, 1}, | |
16 | } | |
17 | } | |
18 | ||
19 | ||
20 | for z = 1, #art do | |
21 | for y = 1, #art[z] do | |
22 | for x = 1, #art[z][y] do | |
23 | slot = art[z][y][x] | |
24 | if slot ~= 0 then | |
25 | turtle.select(slot) | |
26 | turtle.placeDown() | |
27 | end | |
28 | turtle.forward() | |
29 | end | |
30 | ||
31 | for i = 1, #art[z][y] do | |
32 | turtle.back() | |
33 | end | |
34 | turtle.turnRight() | |
35 | turtle.forward() | |
36 | turtle.turnLeft() | |
37 | end | |
38 | turtle.turnLeft() | |
39 | for y = 1, #art[z] do | |
40 | turtle.forward() | |
41 | end | |
42 | turtle.turnRight() | |
43 | turtle.up() | |
44 | end |