SHOW:
|
|
- or go back to the newest paste.
1 | - | a = "projecte:alchemical_chest_6" |
1 | + | function DetectIfTurtleEmpty() |
2 | for a = 1,16 do | |
3 | - | --Condenser = peripheral.wrap("projecte:condenser_mk2_0") |
3 | + | b = turtle.getItemCount(a) |
4 | if b >= 1 then | |
5 | turtle.select(a) | |
6 | - | Condenser.pushItems("turtle_1", 54, 64, 3) |
6 | + | turtle.dropDown() |
7 | end | |
8 | end | |
9 | end | |
10 | ||
11 | function Iron_Furnace() | |
12 | DetectIfTurtleEmpty() | |
13 | T18 = peripheral.wrap("turtle_18") | |
14 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
15 | Chest.pushItems("turtle_18", 01, 60, 01) | |
16 | Chest.pushItems("turtle_18", 01, 60, 02) | |
17 | Chest.pushItems("turtle_18", 01, 60, 03) | |
18 | Chest.pushItems("turtle_18", 01, 60, 05) | |
19 | Chest.pushItems("turtle_18", 01, 60, 07) | |
20 | Chest.pushItems("turtle_18", 01, 60, 09) | |
21 | Chest.pushItems("turtle_18", 01, 60, 10) | |
22 | Chest.pushItems("turtle_18", 01, 60, 11) | |
23 | turtle.select(1) | |
24 | turtle.craft() | |
25 | Chest.pullItems("turtle_18", 01, 60, 18) | |
26 | end | |
27 | ||
28 | function Copper_Cable_1() | |
29 | DetectIfTurtleEmpty() | |
30 | T18 = peripheral.wrap("turtle_18") | |
31 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
32 | Chest.pushItems("turtle_18", 03, 60, 01) | |
33 | Chest.pushItems("turtle_18", 03, 60, 02) | |
34 | Chest.pushItems("turtle_18", 03, 60, 03) | |
35 | Chest.pushItems("turtle_18", 02, 60, 05) | |
36 | Chest.pushItems("turtle_18", 02, 60, 06) | |
37 | Chest.pushItems("turtle_18", 02, 60, 07) | |
38 | Chest.pushItems("turtle_18", 03, 60, 09) | |
39 | Chest.pushItems("turtle_18", 03, 60, 10) | |
40 | Chest.pushItems("turtle_18", 03, 60, 11) | |
41 | turtle.select(1) | |
42 | turtle.craft() | |
43 | for a = 1,6 do | |
44 | b = a + 18 | |
45 | Chest.pullItems("turtle_18", a, 60, b) | |
46 | end | |
47 | for a = 1,6 do | |
48 | Chest.pullItems("turtle_18", a, 60, 24) | |
49 | end | |
50 | end | |
51 | ||
52 | function Electronic_Circuit_1() | |
53 | DetectIfTurtleEmpty() | |
54 | T18 = peripheral.wrap("turtle_18") | |
55 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
56 | Chest.pushItems("turtle_18", 19, 60, 01) | |
57 | Chest.pushItems("turtle_18", 20, 60, 02) | |
58 | Chest.pushItems("turtle_18", 21, 60, 03) | |
59 | Chest.pushItems("turtle_18", 04, 60, 05) | |
60 | Chest.pushItems("turtle_18", 05, 60, 06) | |
61 | Chest.pushItems("turtle_18", 04, 60, 07) | |
62 | Chest.pushItems("turtle_18", 22, 60, 09) | |
63 | Chest.pushItems("turtle_18", 23, 60, 10) | |
64 | Chest.pushItems("turtle_18", 24, 60, 11) | |
65 | turtle.select(1) | |
66 | turtle.craft() | |
67 | Chest.pullItems("turtle_18", 01, 60, 26) | |
68 | end | |
69 | ||
70 | function Copper_Cable_2() | |
71 | DetectIfTurtleEmpty() | |
72 | T18 = peripheral.wrap("turtle_18") | |
73 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
74 | Chest.pushItems("turtle_18", 03, 60, 01) | |
75 | Chest.pushItems("turtle_18", 03, 60, 02) | |
76 | Chest.pushItems("turtle_18", 03, 60, 03) | |
77 | Chest.pushItems("turtle_18", 02, 60, 05) | |
78 | Chest.pushItems("turtle_18", 02, 60, 06) | |
79 | Chest.pushItems("turtle_18", 02, 60, 07) | |
80 | Chest.pushItems("turtle_18", 03, 60, 09) | |
81 | Chest.pushItems("turtle_18", 03, 60, 10) | |
82 | Chest.pushItems("turtle_18", 03, 60, 11) | |
83 | turtle.select(1) | |
84 | turtle.craft() | |
85 | for a = 1,5 do | |
86 | b = a + 18 | |
87 | Chest.pullItems("turtle_18", a, 60, b) | |
88 | end | |
89 | for a = 1,6 do | |
90 | Chest.pullItems("turtle_18", a, 60, 24) | |
91 | end | |
92 | end | |
93 | ||
94 | function Electronic_Circuit_2() | |
95 | DetectIfTurtleEmpty() | |
96 | T18 = peripheral.wrap("turtle_18") | |
97 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
98 | Chest.pushItems("turtle_18", 19, 60, 01) | |
99 | Chest.pushItems("turtle_18", 20, 60, 02) | |
100 | Chest.pushItems("turtle_18", 21, 60, 03) | |
101 | Chest.pushItems("turtle_18", 04, 60, 05) | |
102 | Chest.pushItems("turtle_18", 05, 60, 06) | |
103 | Chest.pushItems("turtle_18", 04, 60, 07) | |
104 | Chest.pushItems("turtle_18", 22, 60, 09) | |
105 | Chest.pushItems("turtle_18", 23, 60, 10) | |
106 | Chest.pushItems("turtle_18", 24, 60, 11) | |
107 | turtle.select(1) | |
108 | turtle.craft() | |
109 | Chest.pullItems("turtle_18", 01, 60, 27) | |
110 | end | |
111 | ||
112 | function Copper_Cable_3() | |
113 | DetectIfTurtleEmpty() | |
114 | T18 = peripheral.wrap("turtle_18") | |
115 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
116 | Chest.pushItems("turtle_18", 03, 10, 01) | |
117 | Chest.pushItems("turtle_18", 03, 10, 02) | |
118 | Chest.pushItems("turtle_18", 03, 10, 03) | |
119 | Chest.pushItems("turtle_18", 02, 10, 05) | |
120 | Chest.pushItems("turtle_18", 02, 10, 06) | |
121 | Chest.pushItems("turtle_18", 02, 10, 07) | |
122 | Chest.pushItems("turtle_18", 03, 10, 09) | |
123 | Chest.pushItems("turtle_18", 03, 10, 10) | |
124 | Chest.pushItems("turtle_18", 03, 10, 11) | |
125 | turtle.select(1) | |
126 | turtle.craft() | |
127 | Chest.pullItems("turtle_18", 01, 60, 25) | |
128 | end | |
129 | ||
130 | function Re_Battery() | |
131 | DetectIfTurtleEmpty() | |
132 | T18 = peripheral.wrap("turtle_18") | |
133 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
134 | Chest.pushItems("turtle_18", 25, 60, 02) | |
135 | Chest.pushItems("turtle_18", 06, 60, 05) | |
136 | Chest.pushItems("turtle_18", 04, 60, 06) | |
137 | Chest.pushItems("turtle_18", 06, 60, 07) | |
138 | Chest.pushItems("turtle_18", 06, 60, 09) | |
139 | Chest.pushItems("turtle_18", 04, 60, 10) | |
140 | Chest.pushItems("turtle_18", 06, 60, 11) | |
141 | turtle.select(1) | |
142 | turtle.craft() | |
143 | Chest.pullItems("turtle_18", 01, 16, 10) | |
144 | Chest.pullItems("turtle_18", 02, 16, 11) | |
145 | Chest.pullItems("turtle_18", 03, 16, 12) | |
146 | Chest.pullItems("turtle_18", 04, 12, 13) | |
147 | end | |
148 | ||
149 | function Generator() | |
150 | DetectIfTurtleEmpty() | |
151 | T18 = peripheral.wrap("turtle_18") | |
152 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
153 | Chest.pushItems("turtle_18", 05, 60, 05) | |
154 | Chest.pushItems("turtle_18", 05, 60, 06) | |
155 | Chest.pushItems("turtle_18", 05, 60, 07) | |
156 | Chest.pushItems("turtle_18", 18, 60, 10) | |
157 | turtle.select(16) | |
158 | for a = 10,13 do | |
159 | Chest.pushItems("turtle_18", a, 16, 02) | |
160 | turtle.craft() | |
161 | Chest.pullItems("turtle_18", 16, 16, 14) | |
162 | end | |
163 | end | |
164 | ||
165 | function Solar_Panel() | |
166 | DetectIfTurtleEmpty() | |
167 | T18 = peripheral.wrap("turtle_18") | |
168 | Chest = peripheral.wrap("minecraft:ender chest_1") | |
169 | Chest.pushItems("turtle_18", 08, 60, 01) | |
170 | Chest.pushItems("turtle_18", 07, 60, 02) | |
171 | Chest.pushItems("turtle_18", 08, 60, 03) | |
172 | Chest.pushItems("turtle_18", 07, 60, 05) | |
173 | Chest.pushItems("turtle_18", 08, 60, 06) | |
174 | Chest.pushItems("turtle_18", 07, 60, 07) | |
175 | Chest.pushItems("turtle_18", 26, 60, 09) | |
176 | Chest.pushItems("turtle_18", 14, 60, 10) | |
177 | Chest.pushItems("turtle_18", 27, 60, 11) | |
178 | turtle.select(1) | |
179 | turtle.craft() | |
180 | turtle.dropUp() | |
181 | end | |
182 | Iron_Furnace() | |
183 | Copper_Cable_1() | |
184 | Electronic_Circuit_1() | |
185 | Copper_Cable_2() | |
186 | Electronic_Circuit_2() | |
187 | Copper_Cable_3() | |
188 | Re_Battery() | |
189 | Generator() | |
190 | Solar_Panel() | |
191 |