commit | author | age
|
d55ecc
|
1 |
|
N |
2 |
local S = technic.getter |
|
3 |
|
dd65a6
|
4 |
technic.register_recipe_type("alloy", { |
beb480
|
5 |
description = S("Alloying"), |
dd65a6
|
6 |
input_size = 2, |
Z |
7 |
}) |
d55ecc
|
8 |
|
N |
9 |
function technic.register_alloy_recipe(data) |
|
10 |
data.time = data.time or 6 |
|
11 |
technic.register_recipe("alloy", data) |
|
12 |
end |
|
13 |
|
|
14 |
local recipes = { |
|
15 |
{"technic:copper_dust 3", "technic:tin_dust", "technic:bronze_dust 4"}, |
d1b54a
|
16 |
{"default:copper_ingot 3", "default:tin_ingot", "default:bronze_ingot 4"}, |
0003ec
|
17 |
{"technic:wrought_iron_dust", "technic:coal_dust", "technic:carbon_steel_dust", 3}, |
Z |
18 |
{"technic:wrought_iron_ingot", "technic:coal_dust", "technic:carbon_steel_ingot", 3}, |
|
19 |
{"technic:carbon_steel_dust", "technic:coal_dust", "technic:cast_iron_dust", 3}, |
|
20 |
{"technic:carbon_steel_ingot", "technic:coal_dust", "technic:cast_iron_ingot", 3}, |
d55ecc
|
21 |
{"technic:carbon_steel_dust 3", "technic:chromium_dust", "technic:stainless_steel_dust 4"}, |
N |
22 |
{"technic:carbon_steel_ingot 3", "technic:chromium_ingot", "technic:stainless_steel_ingot 4"}, |
|
23 |
{"technic:copper_dust 2", "technic:zinc_dust", "technic:brass_dust 3"}, |
44cb8d
|
24 |
{"default:copper_ingot 2", "technic:zinc_ingot", "basic_materials:brass_ingot 3"}, |
d55ecc
|
25 |
{"default:sand 2", "technic:coal_dust 2", "technic:silicon_wafer"}, |
N |
26 |
{"technic:silicon_wafer", "technic:gold_dust", "technic:doped_silicon_wafer"}, |
91fcee
|
27 |
-- from https://en.wikipedia.org/wiki/Carbon_black |
T |
28 |
-- The highest volume use of carbon black is as a reinforcing filler in rubber products, especially tires. |
4f78a6
|
29 |
-- "[Compounding a] pure gum vulcanizate … with 50% of its weight of carbon black improves its tensile strength and wear resistance …" |
91fcee
|
30 |
{"technic:raw_latex 4", "technic:coal_dust 2", "technic:rubber 6", 2}, |
e8f103
|
31 |
{"default:ice", "bucket:bucket_empty", "bucket:bucket_water", 1 }, |
d55ecc
|
32 |
} |
N |
33 |
|
|
34 |
for _, data in pairs(recipes) do |
0003ec
|
35 |
technic.register_alloy_recipe({input = {data[1], data[2]}, output = data[3], time = data[4]}) |
d55ecc
|
36 |
end |