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