Support for bushes_classic foods (plantlife modpack)

This commit is contained in:
Ciaran Gultnieks 2014-03-22 19:36:58 +00:00
parent d23d5d4cfe
commit 4eff5b7850
2 changed files with 20 additions and 0 deletions

View File

@ -9,3 +9,4 @@ bushes?
docfarming?
farmingplus?
mtfoods?
bushes_classic?

View File

@ -116,6 +116,25 @@ if minetest.get_modpath("bushes") ~= nil then
overwrite("bushes:basket_pies", 15)
end
if minetest.get_modpath("bushes_classic") then
-- bushes_classic mod, as found in the plantlife modpack
local berries = {
"strawberry",
"blackberry",
"blueberry",
"raspberry",
"gooseberry",
"mixed_berry"}
for _, berry in ipairs(berries) do
if berry ~= "mixed_berry" then
overwrite("bushes:"..berry, 1)
end
overwrite("bushes:"..berry.."_pie_raw", 2)
overwrite("bushes:"..berry.."_pie_cooked", 5)
overwrite("bushes:basket_"..berry, 15)
end
end
if minetest.get_modpath("docfarming") ~= nil then
overwrite("docfarming:carrot", 2)
overwrite("docfarming:cucumber", 2)