Zefram
2014-07-15 dd65a68ce9f494717faffc98c45814f9a9d67fa4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local S = technic.getter
 
technic.register_recipe_type("separating", {
    description = S("Separating"),
    output_size = 2,
})
 
function technic.register_separating_recipe(data)
    data.time = data.time or 10
    technic.register_recipe("separating", data)
end
 
local rubber_tree_planks = minetest.get_modpath("moretrees") and "moretrees:rubber_tree_planks" or "default:wood"
 
local recipes = {
    { "technic:bronze_dust 4",             "technic:copper_dust 3",       "technic:tin_dust"      },
    { "technic:stainless_steel_dust 4",    "technic:wrought_iron_dust 3", "technic:chromium_dust" },
    { "technic:brass_dust 3",              "technic:copper_dust 2",       "technic:zinc_dust"     },
    { "moretrees:rubber_tree_trunk_empty", rubber_tree_planks.." 4",      "technic:raw_latex"     },
    { "moretrees:rubber_tree_trunk",       rubber_tree_planks.." 4",      "technic:raw_latex"     },
}
 
if minetest.get_modpath("bushes_classic") then
    for _, berry in ipairs({ "blackberry", "blueberry", "gooseberry", "raspberry", "strawberry" }) do
        table.insert(recipes, { "bushes:"..berry.."_bush", "default:stick 20", "bushes:"..berry.." 4" })
    end
end
 
for _, data in pairs(recipes) do
    technic.register_separating_recipe({ input = { data[1] }, output = { data[2], data[3] } })
end