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 recipes = { |
|
14 |
{ "technic:bronze_dust 4", "technic:copper_dust 3", "technic:tin_dust" }, |
|
15 |
{ "technic:stainless_steel_dust 4", "technic:wrought_iron_dust 3", "technic:chromium_dust" }, |
|
16 |
{ "technic:brass_dust 3", "technic:copper_dust 2", "technic:zinc_dust" }, |
|
17 |
} |
|
18 |
|
b0faa7
|
19 |
local function uranium_dust(p) |
Z |
20 |
return "technic:uranium"..(p == 7 and "" or p).."_dust" |
|
21 |
end |
|
22 |
for p = 1, 34 do |
|
23 |
table.insert(recipes, { uranium_dust(p).." 2", uranium_dust(p-1), uranium_dust(p+1) }) |
|
24 |
end |
|
25 |
|
dd65a6
|
26 |
if minetest.get_modpath("bushes_classic") then |
Z |
27 |
for _, berry in ipairs({ "blackberry", "blueberry", "gooseberry", "raspberry", "strawberry" }) do |
|
28 |
table.insert(recipes, { "bushes:"..berry.."_bush", "default:stick 20", "bushes:"..berry.." 4" }) |
|
29 |
end |
|
30 |
end |
|
31 |
|
9087ab
|
32 |
if minetest.get_modpath("farming") then |
T |
33 |
table.insert(recipes, { "farming:wheat 4", "farming:seed_wheat 3", "default:dry_shrub 1" }) |
|
34 |
end |
|
35 |
|
dd65a6
|
36 |
for _, data in pairs(recipes) do |
Z |
37 |
technic.register_separating_recipe({ input = { data[1] }, output = { data[2], data[3] } }) |
|
38 |
end |