commit | author | age
|
dd65a6
|
1 |
local S = technic.getter |
Z |
2 |
|
|
3 |
technic.register_recipe_type("separating", { |
|
4 |
description = S("Separating"), |
|
5 |
output_size = 2, |
|
6 |
}) |
|
7 |
|
|
8 |
function technic.register_separating_recipe(data) |
|
9 |
data.time = data.time or 10 |
|
10 |
technic.register_recipe("separating", data) |
|
11 |
end |
|
12 |
|
|
13 |
local rubber_tree_planks = minetest.get_modpath("moretrees") and "moretrees:rubber_tree_planks" or "default:wood" |
|
14 |
|
|
15 |
local recipes = { |
|
16 |
{ "technic:bronze_dust 4", "technic:copper_dust 3", "technic:tin_dust" }, |
|
17 |
{ "technic:stainless_steel_dust 4", "technic:wrought_iron_dust 3", "technic:chromium_dust" }, |
|
18 |
{ "technic:brass_dust 3", "technic:copper_dust 2", "technic:zinc_dust" }, |
|
19 |
{ "moretrees:rubber_tree_trunk_empty", rubber_tree_planks.." 4", "technic:raw_latex" }, |
|
20 |
{ "moretrees:rubber_tree_trunk", rubber_tree_planks.." 4", "technic:raw_latex" }, |
|
21 |
} |
|
22 |
|
b0faa7
|
23 |
-- Refining uranium via centrifuge is intended to make it a practical |
Z |
24 |
-- necessity to set up an automated cascade of centrifuges. Once the |
|
25 |
-- cascade has been primed, production of one 3.5%-fissile dust requires |
|
26 |
-- input of five 0.7%-fissile dust and 490 centrifuge operations, and |
|
27 |
-- produces four 0.0%-fissile dust as a byproduct. The busiest stage |
|
28 |
-- of the cascade is the one taking 0.7%-fissile dust, which performs 28 |
|
29 |
-- of the 490 operations. The least busy is the one taking 3.4%-fissile |
|
30 |
-- dust, which performs 1 of the 490 operations. |
|
31 |
local function uranium_dust(p) |
|
32 |
return "technic:uranium"..(p == 7 and "" or p).."_dust" |
|
33 |
end |
|
34 |
for p = 1, 34 do |
|
35 |
table.insert(recipes, { uranium_dust(p).." 2", uranium_dust(p-1), uranium_dust(p+1) }) |
|
36 |
end |
|
37 |
|
dd65a6
|
38 |
if minetest.get_modpath("bushes_classic") then |
Z |
39 |
for _, berry in ipairs({ "blackberry", "blueberry", "gooseberry", "raspberry", "strawberry" }) do |
|
40 |
table.insert(recipes, { "bushes:"..berry.."_bush", "default:stick 20", "bushes:"..berry.." 4" }) |
|
41 |
end |
|
42 |
end |
|
43 |
|
|
44 |
for _, data in pairs(recipes) do |
|
45 |
technic.register_separating_recipe({ input = { data[1] }, output = { data[2], data[3] } }) |
|
46 |
end |