commit | author | age
|
731a82
|
1 |
|
S |
2 |
local INT, STRING, FLOAT = |
|
3 |
wrench.META_TYPE_INT, |
|
4 |
wrench.META_TYPE_STRING, |
|
5 |
wrench.META_TYPE_FLOAT |
|
6 |
|
|
7 |
wrench:register_node("technic:iron_chest", { |
|
8 |
lists = {"main"}, |
|
9 |
}) |
|
10 |
wrench:register_node("technic:iron_locked_chest", { |
|
11 |
lists = {"main"}, |
|
12 |
metas = {infotext = STRING, |
|
13 |
owner = STRING}, |
|
14 |
owned = true, |
|
15 |
}) |
|
16 |
wrench:register_node("technic:copper_chest", { |
|
17 |
lists = {"main"}, |
|
18 |
}) |
|
19 |
wrench:register_node("technic:copper_locked_chest", { |
|
20 |
lists = {"main"}, |
|
21 |
metas = {infotext = STRING, |
|
22 |
owner = STRING}, |
|
23 |
owned = true, |
|
24 |
}) |
|
25 |
wrench:register_node("technic:silver_chest", { |
|
26 |
lists = {"main"}, |
|
27 |
metas = {infotext = STRING, |
|
28 |
formspec = STRING}, |
|
29 |
}) |
|
30 |
wrench:register_node("technic:silver_locked_chest", { |
|
31 |
lists = {"main"}, |
|
32 |
metas = {infotext = STRING, |
|
33 |
owner = STRING, |
|
34 |
formspec = STRING}, |
|
35 |
owned = true, |
|
36 |
}) |
|
37 |
wrench:register_node("technic:gold_chest", { |
|
38 |
lists = {"main"}, |
|
39 |
metas = {infotext = STRING, |
|
40 |
formspec = STRING}, |
|
41 |
}) |
|
42 |
wrench:register_node("technic:gold_locked_chest", { |
|
43 |
lists = {"main"}, |
|
44 |
metas = {infotext = STRING, |
|
45 |
owner = STRING, |
|
46 |
formspec = STRING}, |
|
47 |
owned = true, |
|
48 |
}) |
|
49 |
wrench:register_node("technic:mithril_chest", { |
|
50 |
lists = {"main"}, |
|
51 |
metas = {infotext = STRING, |
|
52 |
formspec = STRING}, |
|
53 |
}) |
|
54 |
wrench:register_node("technic:mithril_locked_chest", { |
|
55 |
lists = {"main"}, |
|
56 |
metas = {infotext = STRING, |
|
57 |
owner = STRING, |
|
58 |
formspec = STRING}, |
|
59 |
owned = true, |
|
60 |
}) |
|
61 |
wrench:register_node("technic:lv_electric_furnace", { |
|
62 |
lists = {"src", "dst"}, |
|
63 |
metas = {infotext = STRING, |
|
64 |
formspec = STRING, |
|
65 |
LV_EU_demand = INT, |
|
66 |
LV_EU_input = INT, |
|
67 |
src_time = INT}, |
|
68 |
}) |
|
69 |
wrench:register_node("technic:lv_electric_furnace_active", { |
|
70 |
lists = {"src", "dst"}, |
|
71 |
metas = {infotext = STRING, |
|
72 |
formspec = STRING, |
|
73 |
LV_EU_demand = INT, |
|
74 |
LV_EU_input = INT, |
|
75 |
src_time = INT}, |
|
76 |
}) |
|
77 |
wrench:register_node("technic:mv_electric_furnace", { |
|
78 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
79 |
metas = {infotext = STRING, |
|
80 |
formspec = STRING, |
|
81 |
MV_EU_demand = INT, |
|
82 |
MV_EU_input = INT, |
|
83 |
tube_time = INT, |
|
84 |
src_time = INT}, |
|
85 |
}) |
|
86 |
wrench:register_node("technic:mv_electric_furnace_active", { |
|
87 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
88 |
metas = {infotext = STRING, |
|
89 |
formspec = STRING, |
|
90 |
MV_EU_demand = INT, |
|
91 |
MV_EU_input = INT, |
|
92 |
tube_time = INT, |
|
93 |
src_time = INT}, |
|
94 |
}) |
|
95 |
wrench:register_node("technic:coal_alloy_furnace", { |
7ab3f9
|
96 |
lists = {"fuel", "src", "dst"}, |
731a82
|
97 |
metas = {infotext = STRING, |
S |
98 |
fuel_totaltime = FLOAT, |
|
99 |
fuel_time = FLOAT, |
|
100 |
src_totaltime = FLOAT, |
|
101 |
src_time = FLOAT}, |
|
102 |
}) |
|
103 |
wrench:register_node("technic:coal_alloy_furnace_active", { |
7ab3f9
|
104 |
lists = {"fuel", "src", "dst"}, |
731a82
|
105 |
metas = {infotext = STRING, |
S |
106 |
fuel_totaltime = FLOAT, |
|
107 |
fuel_time = FLOAT, |
|
108 |
src_totaltime = FLOAT, |
|
109 |
src_time = FLOAT}, |
|
110 |
}) |
|
111 |
wrench:register_node("technic:alloy_furnace", { |
7ab3f9
|
112 |
lists = {"src", "dst"}, |
731a82
|
113 |
metas = {infotext = STRING, |
S |
114 |
formspec = STRING, |
|
115 |
LV_EU_demand = INT, |
|
116 |
LV_EU_input = INT, |
|
117 |
tube_time = INT, |
|
118 |
src_time = INT}, |
|
119 |
}) |
|
120 |
wrench:register_node("technic:alloy_furnace_active", { |
7ab3f9
|
121 |
lists = {"src", "dst"}, |
731a82
|
122 |
metas = {infotext = STRING, |
S |
123 |
formspec = STRING, |
|
124 |
LV_EU_demand = INT, |
|
125 |
LV_EU_input = INT, |
|
126 |
tube_time = INT, |
|
127 |
src_time = INT}, |
|
128 |
}) |
|
129 |
wrench:register_node("technic:mv_alloy_furnace", { |
7ab3f9
|
130 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
731a82
|
131 |
metas = {infotext = STRING, |
S |
132 |
formspec = STRING, |
|
133 |
MV_EU_demand = INT, |
|
134 |
MV_EU_input = INT, |
|
135 |
tube_time = INT, |
|
136 |
src_time = INT}, |
|
137 |
}) |
|
138 |
wrench:register_node("technic:mv_alloy_furnace_active", { |
7ab3f9
|
139 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
731a82
|
140 |
metas = {infotext = STRING, |
S |
141 |
formspec = STRING, |
|
142 |
MV_EU_demand = INT, |
|
143 |
MV_EU_input = INT, |
|
144 |
tube_time = INT, |
|
145 |
src_time = INT}, |
|
146 |
}) |
|
147 |
wrench:register_node("technic:tool_workshop", { |
7ab3f9
|
148 |
lists = {"src", "upgrade1", "upgrade2"}, |
731a82
|
149 |
metas = {infotext = STRING, |
S |
150 |
formspec = STRING, |
7ab3f9
|
151 |
MV_EU_demand = INT, |
Z |
152 |
MV_EU_input = INT, |
|
153 |
tube_time = INT}, |
731a82
|
154 |
}) |
S |
155 |
wrench:register_node("technic:grinder", { |
|
156 |
lists = {"src", "dst"}, |
|
157 |
metas = {infotext = STRING, |
|
158 |
formspec = STRING, |
|
159 |
LV_EU_demand = INT, |
|
160 |
LV_EU_input = INT, |
|
161 |
src_time = INT}, |
|
162 |
}) |
|
163 |
wrench:register_node("technic:grinder_active", { |
|
164 |
lists = {"src", "dst"}, |
|
165 |
metas = {infotext = STRING, |
|
166 |
formspec = STRING, |
|
167 |
LV_EU_demand = INT, |
|
168 |
LV_EU_input = INT, |
|
169 |
src_time = INT}, |
|
170 |
}) |
|
171 |
wrench:register_node("technic:mv_grinder", { |
|
172 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
173 |
metas = {infotext = STRING, |
|
174 |
formspec = STRING, |
|
175 |
MV_EU_demand = INT, |
|
176 |
MV_EU_input = INT, |
|
177 |
tube_time = INT, |
|
178 |
src_time = INT}, |
|
179 |
}) |
|
180 |
wrench:register_node("technic:mv_grinder_active", { |
|
181 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
182 |
metas = {infotext = STRING, |
|
183 |
formspec = STRING, |
|
184 |
MV_EU_demand = INT, |
|
185 |
MV_EU_input = INT, |
|
186 |
tube_time = INT, |
|
187 |
src_time = INT}, |
|
188 |
}) |
|
189 |
wrench:register_node("technic:extractor", { |
|
190 |
lists = {"src", "dst"}, |
|
191 |
metas = {infotext = STRING, |
|
192 |
formspec = STRING, |
|
193 |
LV_EU_demand = INT, |
|
194 |
LV_EU_input = INT, |
|
195 |
src_time = INT}, |
|
196 |
}) |
|
197 |
wrench:register_node("technic:extractor_active", { |
|
198 |
lists = {"src", "dst"}, |
|
199 |
metas = {infotext = STRING, |
|
200 |
formspec = STRING, |
|
201 |
LV_EU_demand = INT, |
|
202 |
LV_EU_input = INT, |
|
203 |
src_time = INT}, |
|
204 |
}) |
7ab3f9
|
205 |
wrench:register_node("technic:mv_extractor", { |
Z |
206 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
207 |
metas = {infotext = STRING, |
|
208 |
formspec = STRING, |
|
209 |
MV_EU_demand = INT, |
|
210 |
MV_EU_input = INT, |
|
211 |
tube_time = INT, |
|
212 |
src_time = INT}, |
|
213 |
}) |
|
214 |
wrench:register_node("technic:mv_extractor_active", { |
|
215 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
216 |
metas = {infotext = STRING, |
|
217 |
formspec = STRING, |
|
218 |
MV_EU_demand = INT, |
|
219 |
MV_EU_input = INT, |
|
220 |
tube_time = INT, |
|
221 |
src_time = INT}, |
|
222 |
}) |
731a82
|
223 |
wrench:register_node("technic:compressor", { |
S |
224 |
lists = {"src", "dst"}, |
|
225 |
metas = {infotext = STRING, |
|
226 |
formspec = STRING, |
|
227 |
LV_EU_demand = INT, |
|
228 |
LV_EU_input = INT, |
|
229 |
src_time = INT}, |
|
230 |
}) |
|
231 |
wrench:register_node("technic:compressor_active", { |
|
232 |
lists = {"src", "dst"}, |
|
233 |
metas = {infotext = STRING, |
|
234 |
formspec = STRING, |
|
235 |
LV_EU_demand = INT, |
|
236 |
LV_EU_input = INT, |
7ab3f9
|
237 |
src_time = INT}, |
Z |
238 |
}) |
|
239 |
wrench:register_node("technic:mv_compressor", { |
|
240 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
241 |
metas = {infotext = STRING, |
|
242 |
formspec = STRING, |
|
243 |
MV_EU_demand = INT, |
|
244 |
MV_EU_input = INT, |
|
245 |
tube_time = INT, |
|
246 |
src_time = INT}, |
|
247 |
}) |
|
248 |
wrench:register_node("technic:mv_compressor_active", { |
|
249 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
250 |
metas = {infotext = STRING, |
|
251 |
formspec = STRING, |
|
252 |
MV_EU_demand = INT, |
|
253 |
MV_EU_input = INT, |
|
254 |
tube_time = INT, |
731a82
|
255 |
src_time = INT}, |
S |
256 |
}) |
|
257 |
wrench:register_node("technic:cnc", { |
|
258 |
lists = {"src", "dst"}, |
|
259 |
metas = {infotext = STRING, |
|
260 |
formspec = STRING, |
|
261 |
LV_EU_demand = INT, |
|
262 |
LV_EU_input = INT, |
|
263 |
src_time = INT, |
|
264 |
cnc_product = STRING}, |
|
265 |
}) |
|
266 |
wrench:register_node("technic:cnc_active", { |
|
267 |
lists = {"src", "dst"}, |
|
268 |
metas = {infotext = STRING, |
|
269 |
formspec = STRING, |
|
270 |
LV_EU_demand = INT, |
|
271 |
LV_EU_input = INT, |
|
272 |
src_time = INT, |
|
273 |
cnc_product = STRING}, |
|
274 |
}) |
7ab3f9
|
275 |
wrench:register_node("technic:mv_centrifuge", { |
Z |
276 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
277 |
metas = {infotext = STRING, |
|
278 |
formspec = STRING, |
|
279 |
MV_EU_demand = INT, |
|
280 |
MV_EU_input = INT, |
|
281 |
tube_time = INT, |
|
282 |
src_time = INT}, |
|
283 |
}) |
|
284 |
wrench:register_node("technic:mv_centrifuge_active", { |
|
285 |
lists = {"src", "dst", "upgrade1", "upgrade2"}, |
|
286 |
metas = {infotext = STRING, |
|
287 |
formspec = STRING, |
|
288 |
MV_EU_demand = INT, |
|
289 |
MV_EU_input = INT, |
|
290 |
tube_time = INT, |
|
291 |
src_time = INT}, |
|
292 |
}) |
731a82
|
293 |
|
S |
294 |
|
|
295 |
local chest_mark_colors = { |
|
296 |
'_black', |
|
297 |
'_blue', |
|
298 |
'_brown', |
|
299 |
'_cyan', |
|
300 |
'_dark_green', |
|
301 |
'_dark_grey', |
|
302 |
'_green', |
|
303 |
'_grey', |
|
304 |
'_magenta', |
|
305 |
'_orange', |
|
306 |
'_pink', |
|
307 |
'_red', |
|
308 |
'_violet', |
|
309 |
'_white', |
|
310 |
'_yellow', |
|
311 |
'', |
|
312 |
} |
|
313 |
|
|
314 |
for i = 1, 15 do |
|
315 |
wrench:register_node("technic:gold_chest"..chest_mark_colors[i], { |
|
316 |
lists = {"main"}, |
|
317 |
metas = {infotext = STRING,formspec = STRING}, |
|
318 |
}) |
|
319 |
wrench:register_node("technic:gold_locked_chest"..chest_mark_colors[i], { |
|
320 |
lists = {"main"}, |
|
321 |
metas = {infotext = STRING,owner = STRING,formspec = STRING}, |
|
322 |
owned = true, |
|
323 |
}) |
|
324 |
end |
|
325 |
|
ab6f2b
|
326 |
if minetest.get_modpath("technic") then |
R |
327 |
for tier, _ in pairs(technic.machines) do |
|
328 |
local ltier = tier:lower() |
|
329 |
for i = 0, 8 do |
|
330 |
wrench:register_node("technic:"..ltier.."_battery_box"..i, { |
|
331 |
lists = {"src", "dst"}, |
|
332 |
metas = {infotext = STRING, |
|
333 |
formspec = STRING, |
|
334 |
[tier.."_EU_demand"] = INT, |
|
335 |
[tier.."_EU_supply"] = INT, |
|
336 |
[tier.."_EU_input"] = INT, |
|
337 |
internal_EU_charge = INT, |
|
338 |
last_side_shown = INT}, |
|
339 |
}) |
|
340 |
end |
731a82
|
341 |
end |
S |
342 |
end |
|
343 |
|