2014-07-03 15:57:39 +02:00
|
|
|
|
|
|
|
local S = technic.getter
|
|
|
|
|
2014-07-15 19:29:36 +02:00
|
|
|
technic.register_recipe_type("alloy", {
|
2014-08-01 18:50:40 +02:00
|
|
|
description = S("Alloying"),
|
2014-07-15 19:29:36 +02:00
|
|
|
input_size = 2,
|
|
|
|
})
|
2014-07-03 15:57:39 +02:00
|
|
|
|
|
|
|
function technic.register_alloy_recipe(data)
|
|
|
|
data.time = data.time or 6
|
|
|
|
technic.register_recipe("alloy", data)
|
|
|
|
end
|
|
|
|
|
|
|
|
local recipes = {
|
|
|
|
{"technic:copper_dust 3", "technic:tin_dust", "technic:bronze_dust 4"},
|
2018-07-21 19:11:12 +02:00
|
|
|
{"default:copper_ingot 3", "default:tin_ingot", "default:bronze_ingot 4"},
|
2014-08-01 18:40:35 +02:00
|
|
|
{"technic:wrought_iron_dust", "technic:coal_dust", "technic:carbon_steel_dust", 3},
|
|
|
|
{"technic:wrought_iron_ingot", "technic:coal_dust", "technic:carbon_steel_ingot", 3},
|
|
|
|
{"technic:carbon_steel_dust", "technic:coal_dust", "technic:cast_iron_dust", 3},
|
|
|
|
{"technic:carbon_steel_ingot", "technic:coal_dust", "technic:cast_iron_ingot", 3},
|
2014-07-03 15:57:39 +02:00
|
|
|
{"technic:carbon_steel_dust 3", "technic:chromium_dust", "technic:stainless_steel_dust 4"},
|
|
|
|
{"technic:carbon_steel_ingot 3", "technic:chromium_ingot", "technic:stainless_steel_ingot 4"},
|
|
|
|
{"technic:copper_dust 2", "technic:zinc_dust", "technic:brass_dust 3"},
|
2018-10-31 01:29:28 +01:00
|
|
|
{"default:copper_ingot 2", "technic:zinc_ingot", "basic_materials:brass_ingot 3"},
|
2014-07-03 15:57:39 +02:00
|
|
|
{"default:sand 2", "technic:coal_dust 2", "technic:silicon_wafer"},
|
|
|
|
{"technic:silicon_wafer", "technic:gold_dust", "technic:doped_silicon_wafer"},
|
2015-01-30 17:41:05 +01:00
|
|
|
-- from https://en.wikipedia.org/wiki/Carbon_black
|
|
|
|
-- The highest volume use of carbon black is as a reinforcing filler in rubber products, especially tires.
|
|
|
|
-- "[Compounding a] pure gum vulcanizate … with 50% of its weight of carbon black improves its tensile strength and wear resistance …"
|
|
|
|
{"technic:raw_latex 4", "technic:coal_dust 2", "technic:rubber 6", 2},
|
2014-07-03 15:57:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for _, data in pairs(recipes) do
|
2014-08-01 18:40:35 +02:00
|
|
|
technic.register_alloy_recipe({input = {data[1], data[2]}, output = data[3], time = data[4]})
|
2014-07-03 15:57:39 +02:00
|
|
|
end
|