Zefram
2014-07-25 d59055dd2b1a03449ff11318a2f210d37dd7e76a
commit | author | age
d55ecc 1
N 2 local S = technic.getter
3
4 technic.register_recipe_type("alloy", S("Alloy cooking"), 2)
5
6 function technic.register_alloy_recipe(data)
7     data.time = data.time or 6
8     technic.register_recipe("alloy", data)
9 end
10
11 local recipes = {
12     {"technic:copper_dust 3",         "technic:tin_dust",           "technic:bronze_dust 4"},
13     {"default:copper_ingot 3",        "moreores:tin_ingot",         "default:bronze_ingot 4"},
14     {"technic:wrought_iron_dust",     "technic:coal_dust",          "technic:carbon_steel_dust"},
15     {"technic:wrought_iron_ingot",    "technic:coal_dust",          "technic:carbon_steel_ingot"},
16     {"technic:carbon_steel_dust",     "technic:coal_dust",          "technic:cast_iron_dust"},
17     {"technic:carbon_steel_ingot",    "technic:coal_dust",          "technic:cast_iron_ingot"},
18     {"technic:carbon_steel_dust 3",   "technic:chromium_dust",      "technic:stainless_steel_dust 4"},
19     {"technic:carbon_steel_ingot 3",  "technic:chromium_ingot",     "technic:stainless_steel_ingot 4"},
20     {"technic:copper_dust 2",         "technic:zinc_dust",          "technic:brass_dust 3"},
ad157d 21     {"default:copper_ingot 2",        "technic:zinc_ingot",         "technic:brass_ingot 3"},
d55ecc 22     {"default:sand 2",                "technic:coal_dust 2",        "technic:silicon_wafer"},
N 23     {"technic:silicon_wafer",         "technic:gold_dust",          "technic:doped_silicon_wafer"},
24 }
25
26 for _, data in pairs(recipes) do
27     technic.register_alloy_recipe({input = {data[1], data[2]}, output = data[3]})
28 end