SHOW:
|
|
- or go back to the newest paste.
1 | local i = 0 | |
2 | ||
3 | while true do | |
4 | turtle.place() | |
5 | turtle.select(2) | |
6 | turtle.place() | |
7 | turtle.dig() | |
8 | turtle.forward() | |
9 | ||
10 | i = 0 | |
11 | while turtle.detectUp() do | |
12 | - | if i == 3 then |
12 | + | i = i + 1 |
13 | - | break |
13 | + | if i < 6 |
14 | turtle.digUp() | |
15 | - | turtle.digUp() |
15 | + | turtle.up() |
16 | - | turtle.up() |
16 | + | |
17 | end | |
18 | while not turtle.detectDown() do | |
19 | turtle.down() | |
20 | end | |
21 | turtle.turnRight() | |
22 | turtle.turnRight() | |
23 | turtle.forward() | |
24 | for i=3,8 do | |
25 | if turtle.getItemCount(i) > 0 then | |
26 | turtle.select(i) | |
27 | if turtle.getItemCount(i) < 4 then | |
28 | for i2=9,16 do | |
29 | turtle.transferTo(i2, 64) | |
30 | end | |
31 | end | |
32 | turtle.drop() | |
33 | end | |
34 | end | |
35 | for i=9,16 do | |
36 | turtle.select(i) | |
37 | turtle.transferTo(1, 64) | |
38 | turtle.transferTo(2, 64) | |
39 | end | |
40 | turtle.select(1) | |
41 | turtle.turnRight() | |
42 | turtle.turnRight() | |
43 | end |