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