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