SHOW:
|
|
- or go back to the newest paste.
1 | --Über turtle mindestens Iron Chest | |
2 | - | for i=1,10 do |
2 | + | --Vor turtle Obsidian Chest |
3 | - | for i=1,4 do |
3 | + | --Unter Turtle CHest welche nur dian abgesaugt werden |
4 | - | turtle.select(2) |
4 | + | rednet.open("right") |
5 | - | turtle.suckUp() |
5 | + | |
6 | - | turtle.select(3) |
6 | + | print("Obsidian Menge eingeben") --Obsidianmenge angeben |
7 | - | turtle.suckUp() |
7 | + | Obsidian = tonumber(read()) + 1728 |
8 | - | turtle.select(5) |
8 | + | Diamanten = Obsidian / 8192 --Teilen durch 8192 |
9 | - | turtle.suckUp() |
9 | + | local Dmin = math.floor(Diamanten) --auf nächstkleinere Ganzzahl abrunden |
10 | - | turtle.select(6) |
10 | + | print("Durchläuft: " .. Dmin) |
11 | - | turtle.suckUp() |
11 | + | time = Dmin * 19 |
12 | - | turtle.select(7) |
12 | + | Tmax = math.ceil(time) |
13 | - | turtle.suckUp() |
13 | + | print("Crafting Dauer") |
14 | - | turtle.select(9) |
14 | + | print("Insgesammt: " .. Tmax .. " Minuten") |
15 | - | turtle.suckUp() |
15 | + | print("Pro Durchlauf: 19 Minuten") |
16 | - | turtle.select(10) |
16 | + | for a = 1,Dmin do --Starte Programm nach gerundeter Zahl |
17 | - | turtle.suckUp() |
17 | + | |
18 | - | turtle.select(11) |
18 | + | rednet.broadcast("aus") |
19 | - | turtle.suckUp() |
19 | + | for i=1,32 do --Obsidian zu Iron 24x |
20 | - | turtle.select(4) |
20 | + | turtle.select(2) |
21 | - | for i=1,64 do |
21 | + | turtle.suck() |
22 | - | turtle.craft() |
22 | + | turtle.select(3) |
23 | - | turtle.dropDown() |
23 | + | turtle.suck() |
24 | - | end |
24 | + | turtle.select(5) |
25 | - | end |
25 | + | turtle.suck() |
26 | - | turtle.select(2) |
26 | + | turtle.select(6) |
27 | - | turtle.suckDown() |
27 | + | turtle.suck() |
28 | - | turtle.select(3) |
28 | + | turtle.select(7) |
29 | - | turtle.suckDown() |
29 | + | for i=1,64 do |
30 | - | turtle.select(5) |
30 | + | turtle.craft() |
31 | - | turtle.suckDown() |
31 | + | end |
32 | - | turtle.select(6) |
32 | + | end |
33 | - | turtle.suckDown() |
33 | + | |
34 | - | turtle.select(7) |
34 | + | rednet.broadcast("an") |
35 | - | for i=1,64 do |
35 | + | for i=1,4 do --Iron zu Gold 4x |
36 | - | turtle.craft() |
36 | + | turtle.select(2) |
37 | - | turtle.dropDown() |
37 | + | turtle.suckUp() |
38 | - | end |
38 | + | turtle.select(3) |
39 | - | for i=1,24 do |
39 | + | turtle.suckUp() |
40 | - | turtle.select(2) |
40 | + | turtle.select(5) |
41 | - | turtle.suck() |
41 | + | turtle.suckUp() |
42 | - | turtle.select(3) |
42 | + | turtle.select(6) |
43 | - | turtle.suck() |
43 | + | turtle.suckUp() |
44 | - | turtle.select(5) |
44 | + | turtle.select(7) |
45 | - | turtle.suck() |
45 | + | turtle.suckUp() |
46 | - | turtle.select(6) |
46 | + | turtle.select(9) |
47 | - | turtle.suck() |
47 | + | turtle.suckUp() |
48 | - | turtle.select(7) |
48 | + | turtle.select(10) |
49 | - | for i=1,64 do |
49 | + | turtle.suckUp() |
50 | - | turtle.craft() |
50 | + | turtle.select(11) |
51 | - | turtle.dropUp() |
51 | + | turtle.suckUp() |
52 | - | end |
52 | + | turtle.select(4) |
53 | - | end |
53 | + | for i=1,64 do |
54 | - | end |
54 | + | turtle.craft() |
55 | turtle.dropDown() | |
56 | end | |
57 | end | |
58 | ||
59 | turtle.select(2) --Gold zu Diamanten 1x | |
60 | turtle.suckDown() | |
61 | turtle.select(3) | |
62 | turtle.suckDown() | |
63 | turtle.select(5) | |
64 | turtle.suckDown() | |
65 | turtle.select(6) | |
66 | turtle.suckDown() | |
67 | turtle.select(7) | |
68 | for i=1,64 do | |
69 | turtle.craft() | |
70 | turtle.dropDown() | |
71 | end | |
72 | end | |
73 | end |