-
Notifications
You must be signed in to change notification settings - Fork 1
/
craft_compat.lua
339 lines (326 loc) · 13.4 KB
/
craft_compat.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
--Recipe registration
local recipes = {
{type = "shapeless", output = "elepower_dynamics:acidic_compound", recipe = {
"technic:copper_dust", "technic:copper_dust", "technic:copper_dust", "technic:copper_dust", "farming:seed_wheat"
}
},
{output = "elepower_dynamics:battery 2", recipe = {
{"group:dust_zinc", "elepower_dynamics:graphite_rod", "group:dust_lead"},
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
}
},
{output = "technic:battery", recipe = {
{"group:wood", "group:sulfur", "group:wood"},
{"group:lead_ingot", "group:water_bucket", "group:lead_ingot"},
{"group:wood", "group:sulfur", "group:wood"},
},
replacements = {
{"group:water_bucket", "bucket:bucket_empty"},
}
},
{output = "technic:battery", recipe = {
{"group:wood", "group:sulfur", "group:wood"},
{"group:lead_ingot", "basic_materials:oil_extract", "group:lead_ingot"},
{"group:wood", "group:sulfur", "group:wood"},
}
},
{output = "technic:battery", recipe = {
{"group:wood", "default:copper_ingot", "group:wood"},
{"group:wood", "default:tin_ingot", "group:wood"},
{"group:wood", "default:copper_ingot", "group:wood"},
}
},
{type = "cooking", output = "basic_materials:brass_ingot", recipe = "elepower_dynamics:brass_dust"},
{type = "cooking", output = "default:bronze_ingot", recipe = "elepower_dynamics:bronze_dust"},
{output = "bucket:bucket_empty", recipe = {
{"technic:cast_iron_ingot", "", "technic:cast_iron_ingot"},
{"", "technic:cast_iron_ingot", ""},
}
},
{type = "fuel", recipe = "group:dust_coal", time = 50},
{output = "elepower_dynamics:conduit 8", recipe = {
{"technic:lead_ingot", "technic:lead_ingot", "technic:lead_ingot"},
{"basic_materials:copper_wire", "basic_materials:copper_wire", "basic_materials:copper_wire"},
{"technic:lead_ingot", "technic:lead_ingot", "technic:lead_ingot"},
},
replacements = {
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
}
},
{output = "technic:control_logic_unit", recipe = {
{"", "basic_materials:gold_wire", ""},
{"default:copper_ingot", "elepower_dynamics:silicon_wafer", "default:copper_ingot"},
{"", "technic:chromium_ingot", ""},
},
replacements = {
{"basic_materials:gold_wire", "basic_materials:empty_spool"},
}
},
{output = "elepower_machines:heavy_filter", recipe = {
{"elepower_dynamics:steel_plate", "fluid_transfer:fluid_duct", "elepower_dynamics:steel_plate"},
{"basic_materials:silicon", "elepower_dynamics:servo_valve", "basic_materials:silicon"},
{"technic:carbon_cloth", "fluid_transfer:fluid_duct", "technic:carbon_cloth"}
}
},
{output = "elepower_dynamics:axe_iron", recipe = {
{"technic:cast_iron_ingot", "technic:cast_iron_ingot"},
{"technic:cast_iron_ingot", "group:stick"},
{"", "group:stick"},
}
},
{output = "elepower_dynamics:iron_gear", recipe = {
{"", "technic:cast_iron_ingot", ""},
{"technic:cast_iron_ingot", "", "technic:cast_iron_ingot"},
{"", "technic:cast_iron_ingot", ""},
}
},
{type = "cooking", output = "elepower_dynamics:iron_ingot", recipe = "default:iron_lump"},
{output = "elepower_dynamics:pick_iron", recipe = {
{"technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot"},
{"", "group:stick", ""},
{"", "group:stick", ""},
}
},
{output = "elepower_dynamics:shovel_iron", recipe = {
{"technic:cast_iron_ingot"},
{"group:stick"},
{"group:stick"},
}
},
{output = "elepower_dynamics:sword_iron", recipe = {
{"technic:cast_iron_ingot"},
{"technic:cast_iron_ingot"},
{"group:stick"},
}
},
{output = "technic:lava_can", recipe = {
{"elepower_dynamics:zinc_ingot", "technic:stainless_steel_ingot", "elepower_dynamics:zinc_ingot"},
{"technic:stainless_steel_ingot", "", "technic:stainless_steel_ingot"},
{"elepower_dynamics:zinc_ingot", "technic:stainless_steel_ingot", "elepower_dynamics:zinc_ingot"},
}
},
{output = "elepower_dynamics:axe_lead", recipe = {
{"technic:lead_ingot", "technic:lead_ingot"},
{"technic:lead_ingot", "group:stick"},
{"", "group:stick"},
}
},
{output = "elepower_dynamics:lead_gear", recipe = {
{"", "technic:lead_ingot", ""},
{"technic:lead_ingot", "", "technic:lead_ingot"},
{"", "technic:lead_ingot", ""},
}
},
{type = "cooking", output = "elepower_dynamics:lead_ingot", recipe = "technic:lead_ingot"},
{type = "cooking", output = "technic:lead_ingot", recipe = "elepower_dynamics:lead_ingot"},
{output = "elepower_dynamics:pick_lead", recipe = {
{"technic:lead_ingot", "technic:lead_ingot", "technic:lead_ingot"},
{"", "group:stick", ""},
{"", "group:stick", ""},
}
},
{output = "elepower_dynamics:shovel_lead", recipe = {
{"technic:lead_ingot"},
{"group:stick"},
{"group:stick"},
}
},
{output = "basic_materials:lead_strip 12", recipe = {
{"", "group:lead_ingot"},
{"group:lead_ingot", ""},
}
},
{output = "elepower_dynamics:sword_lead", recipe = {
{"technic:lead_ingot"},
{"technic:lead_ingot"},
{"group:stick"},
}
},
{output = "technic:lv_led 2", recipe = {
{"", "basic_materials:plastic_sheet", ""},
{"basic_materials:plastic_sheet", "elepower_dynamics:silicon_wafer_doped", "basic_materials:plastic_sheet"},
{"", "basic_materials:silver_wire", ""},
},
replacements = {
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
}
},
{output = "elepower_dynamics:opaque_duct 3", recipe = {
{"technic:lead_ingot", "technic:lead_ingot", "technic:lead_ingot"},
{"fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct"},
{"technic:lead_ingot", "technic:lead_ingot", "technic:lead_ingot"},
}
},
{output = "elepower_machines:power_cell_0", recipe = {
{"technic:lead_ingot", "elepower_dynamics:control_circuit", "technic:lead_ingot"},
{"elepower_dynamics:wound_copper_coil", "elepower_machines:machine_block", "elepower_dynamics:wound_copper_coil"},
{"technic:lead_ingot", "elepower_dynamics:battery", "technic:lead_ingot"},
}
},
{output = "elepower_dynamics:pv_cell", recipe = {
{"default:glass", "default:glass", "default:glass"},
{"group:color_blue", "technic:doped_silicon_wafer", "group:color_blue"},
{"default:mese_crystal_fragment", "elepower_dynamics:wound_copper_coil", "default:mese_crystal_fragment"}
}
},
{output = "technic:river_water_can", recipe = {
{"elepower_dynamics:zinc_ingot", "technic:rubber", "elepower_dynamics:zinc_ingot"},
{"default:steel_ingot", "", "default:steel_ingot"},
{"elepower_dynamics:zinc_ingot", "default:steel_ingot", "elepower_dynamics:zinc_ingot"},
}
},
{type = "fuel", recipe = "group:sawdust", time = 6},
{output = "elepower_machines:sawmill", recipe = {
{"", "elepower_dynamics:integrated_circuit", ""},
{"elepower_dynamics:steel_gear", "elepower_machines:machine_block", "elepower_dynamics:steel_gear"},
{"technic:lead_ingot", "elepower_dynamics:diamond_gear", "technic:lead_ingot"},
}
},
{output = "technic:supply_converter 1", recipe = {
{"basic_materials:gold_wire", "technic:rubber", "elepower_dynamics:silicon_wafer_doped"},
{"technic:mv_transformer", "technic:machine_casing", "technic:lv_transformer"},
{"technic:mv_cable", "technic:rubber", "technic:lv_cable"},
},
replacements = {
{"basic_materials:gold_wire", "basic_materials:empty_spool"},
}
},
{output = "technic:water_can", recipe = {
{"elepower_dynamics:zinc_ingot", "technic:rubber", "elepower_dynamics:zinc_ingot"},
{"technic:carbon_steel_ingot", "", "technic:carbon_steel_ingot"},
{"elepower_dynamics:zinc_ingot", "technic:carbon_steel_ingot", "elepower_dynamics:zinc_ingot"},
}
},
{output = "elepower_dynamics:wound_copper_coil", recipe = {
{"", "default:copper_ingot", ""},
{"default:copper_ingot", "group:iron_ingot", "default:copper_ingot"},
{"", "default:copper_ingot", ""}
}
},
{output = "elepower_dynamics:wound_copper_coil", recipe = {
{"", "basic_materials:copper_wire", ""},
{"basic_materials:copper_wire", "group:iron_ingot", "basic_materials:copper_wire"},
{"", "basic_materials:copper_wire", ""}
},
replacements = {
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
}
},
{output = "elepower_dynamics:wound_silver_coil", recipe = {
{"", "moreores:silver_ingot", ""},
{"moreores:silver_ingot", "group:zinc_ingot", "moreores:silver_ingot"},
{"", "moreores:silver_ingot", ""}
}
},
{output = "elepower_dynamics:wound_silver_coil", recipe = {
{"", "basic_materials:silver_wire", ""},
{"basic_materials:silver_wire", "group:zinc_ingot", "basic_materials:silver_wire"},
{"", "basic_materials:silver_wire", ""}
},
replacements = {
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
}
},
{type = "cooking", output = "elepower_dynamics:zinc_ingot", recipe = "technic:zinc_ingot"},
{type = "cooking", output = "technic:zinc_ingot", recipe = "elepower_dynamics:zinc_ingot"},
}
for _, data in pairs(recipes) do
core.register_craft({type = data.type or "shaped", output = data.output, recipe = data.recipe, replacements = data.replacements, cooktime = data.time, burntime = data.time})
end
--Carbon fiber armor
if core.get_modpath ("elepower_tools") then
core.register_craft({output = "elepower_tools:boots_carbon", recipe = {
{"technic:carbon_cloth", "", "technic:carbon_cloth"},
{"technic:carbon_cloth", "", "technic:carbon_cloth"},
}
})
core.register_craft({output = "elepower_tools:chestplate_carbon", recipe = {
{"technic:carbon_cloth", "", "technic:carbon_cloth"},
{"technic:carbon_cloth", "technic:carbon_cloth", "technic:carbon_cloth"},
{"technic:carbon_cloth", "technic:carbon_cloth", "technic:carbon_cloth"},
}
})
core.register_craft({output = "elepower_tools:helmet_carbon", recipe = {
{"technic:carbon_cloth", "technic:carbon_cloth", "technic:carbon_cloth"},
{"technic:carbon_cloth", "", "technic:carbon_cloth"},
}
})
core.register_craft({ output = "elepower_tools:leggings_carbon", recipe = {
{"technic:carbon_cloth", "technic:carbon_cloth", "technic:carbon_cloth"},
{"technic:carbon_cloth", "", "technic:carbon_cloth"},
{"technic:carbon_cloth", "", "technic:carbon_cloth"},
}
})
end
--Extracting
technic.register_extractor_recipe({input = {"elepower_dynamics:coal_dust"}, output = "dye:black 2",})
--Machine block and nuclear waste
if core.get_modpath("elepower_nuclear") then
core.register_craft({output = "elepower_nuclear:machine_block", recipe = {
{"elepower_dynamics:induction_coil_advanced", "elepower_dynamics:graphite_ingot", "elepower_dynamics:induction_coil_advanced"},
{"elepower_dynamics:graphite_ingot", "technic:lead_block", "elepower_dynamics:graphite_ingot"},
{"technic:lead_block", "elepower_dynamics:graphite_ingot", "technic:lead_block"},
}
})
core.register_craft({output = "elepower_nuclear:nuclear_waste 5", recipe = {
{"elepower_nuclear:fuel_rod_depleted"}
},
replacements = {
{"elepower_nuclear:fuel_rod_depleted", "elepower_nuclear:fuel_rod_empty"},
}
})
end
--Solar panel
if core.get_modpath("mesecons_materials") then
core.register_craft({output = "technic:solar_panel", recipe = {
{"elepower_dynamics:silicon_wafer_doped", "elepower_dynamics:silicon_wafer_doped", "elepower_dynamics:silicon_wafer_doped"},
{"basic_materials:silver_wire", "technic:lv_cable", "mesecons_materials:glue"},
},
replacements = {
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
}
})
else
core.register_craft({output = "technic:solar_panel", recipe = {
{"elepower_dynamics:silicon_wafer_doped", "elepower_dynamics:silicon_wafer_doped", "elepower_dynamics:silicon_wafer_doped"},
{"basic_materials:silver_wire", "technic:lv_cable", "technic:raw_latex"},
},
replacements = {
{"basic_materials:silver_wire", "basic_materials:empty_spool"},
}
})
end
--Soldering
elepm.register_craft({
type = "solder",
recipe = {"elepower_dynamics:induction_coil 4", "basic_materials:copper_wire", "technic:zinc_dust 2"},
output = "elepower_dynamics:induction_coil_advanced",
time = 18
})
elepm.register_craft({
type = "solder",
recipe = {"elepower_dynamics:silicon_wafer_doped", "elepower_dynamics:chip 4", "technic:lead_ingot 2"},
output = "elepower_dynamics:microcontroller",
time = 8,
})
elepm.register_craft({
type = "solder",
recipe = {"technic:doped_silicon_wafer", "elepower_dynamics:chip 4", "elepower_dynamics:lead_ingot 2"},
output = "elepower_dynamics:microcontroller",
time = 8,
})
elepm.register_craft({
type = "solder",
recipe = {"technic:doped_silicon_wafer", "elepower_dynamics:chip 4", "technic:lead_ingot 2"},
output = "elepower_dynamics:microcontroller",
time = 8,
})