commit | author | age
|
5d799e
|
1 |
alloy_recipes ={} |
R |
2 |
|
|
3 |
registered_recipes_count=1 |
|
4 |
|
|
5 |
function register_alloy_recipe (string1,count1, string2,count2, string3,count3) |
|
6 |
alloy_recipes[registered_recipes_count]={} |
|
7 |
alloy_recipes[registered_recipes_count].src1_name=string1 |
|
8 |
alloy_recipes[registered_recipes_count].src1_count=count1 |
|
9 |
alloy_recipes[registered_recipes_count].src2_name=string2 |
|
10 |
alloy_recipes[registered_recipes_count].src2_count=count2 |
|
11 |
alloy_recipes[registered_recipes_count].dst_name=string3 |
|
12 |
alloy_recipes[registered_recipes_count].dst_count=count3 |
|
13 |
registered_recipes_count=registered_recipes_count+1 |
|
14 |
alloy_recipes[registered_recipes_count]={} |
|
15 |
alloy_recipes[registered_recipes_count].src1_name=string2 |
|
16 |
alloy_recipes[registered_recipes_count].src1_count=count2 |
|
17 |
alloy_recipes[registered_recipes_count].src2_name=string1 |
|
18 |
alloy_recipes[registered_recipes_count].src2_count=count1 |
|
19 |
alloy_recipes[registered_recipes_count].dst_name=string3 |
|
20 |
alloy_recipes[registered_recipes_count].dst_count=count3 |
|
21 |
registered_recipes_count=registered_recipes_count+1 |
41af01
|
22 |
if unified_inventory then |
R |
23 |
unified_inventory.register_craft({ |
5d799e
|
24 |
type = "alloy", |
R |
25 |
output = string3.." "..count3, |
41af01
|
26 |
items = {string1.." "..count1,string2.." "..count2}, |
R |
27 |
width = 2, |
5d799e
|
28 |
}) |
R |
29 |
end |
|
30 |
end |
|
31 |
|
|
32 |
register_alloy_recipe ("technic:copper_dust",3, "technic:tin_dust",1, "technic:bronze_dust",4) |
|
33 |
register_alloy_recipe ("moreores:copper_ingot",3, "moreores:tin_ingot",1, "moreores:bronze_ingot",4) |
|
34 |
register_alloy_recipe ("technic:iron_dust",3, "technic:chromium_dust",1, "technic:stainless_steel_dust",4) |
|
35 |
register_alloy_recipe ("default:steel_ingot",3, "technic:chromium_ingot",1, "technic:stainless_steel_ingot",4) |
|
36 |
register_alloy_recipe ("technic:copper_dust",2, "technic:zinc_dust",1, "technic:brass_dust",3) |
|
37 |
register_alloy_recipe ("moreores:copper_ingot",2, "technic:zinc_ingot",1, "technic:brass_ingot",3) |
|
38 |
register_alloy_recipe ("default:sand",2, "technic:coal_dust",2, "technic:silicon_wafer",1) |
|
39 |
register_alloy_recipe ("technic:silicon_wafer",1, "technic:mithril_dust",1, "technic:doped_silicon_wafer",1) |