SHOW:
|
|
- or go back to the newest paste.
1 | function slice() | |
2 | while turtle.detectUp() do | |
3 | turtle.digUp() | |
4 | end | |
5 | ||
6 | turtle.turnRight() | |
7 | while turtle.detect() do | |
8 | turtle.dig() | |
9 | end | |
10 | ||
11 | turtle.turnLeft() | |
12 | while turtle.detectDown() do | |
13 | turtle.digDown() | |
14 | end | |
15 | ||
16 | turtle.turnLeft() | |
17 | while turtle.detect() do | |
18 | turtle.dig() | |
19 | end | |
20 | ||
21 | turtle.turnRight() | |
22 | while turtle.detect() do | |
23 | turtle.dig() | |
24 | end | |
25 | turtle.forward() | |
26 | end | |
27 | ||
28 | function chest() | |
29 | turtle.back() | |
30 | if turtle.detectDown() then | |
31 | turtle.digDown() | |
32 | end | |
33 | turtle.select(2) | |
34 | turtle.placeDown() | |
35 | for i = 16,3,-1 do | |
36 | turtle.select(i) | |
37 | turtle.dropDown() | |
38 | end | |
39 | turtle.forward() | |
40 | end | |
41 | ||
42 | function torch() | |
43 | turtle.select(1) | |
44 | turtle.back() | |
45 | if turtle.detectDown == false then | |
46 | turtle.placeDown() | |
47 | else | |
48 | turtle.digDown() | |
49 | turtle.placeDown() | |
50 | end | |
51 | turtle.forward() | |
52 | end | |
53 | ||
54 | print("1 = torches") | |
55 | print("2 = chests") | |
56 | for i=1, 640, 1 do | |
57 | if i%13 == 0 then | |
58 | torch() | |
59 | end | |
60 | if turtle.getItemCount(16) > 0 then | |
61 | chest() | |
62 | end | |
63 | slice() | |
64 | end |