summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2014-03-22 19:36:58 +0000
committerCiaran Gultnieks <ciaran@ciarang.com>2014-03-24 09:36:08 +0000
commit4eff5b785027801cf121a250519803be62def8d2 (patch)
treea08abbc6cd6b20bf3caca885bc61deea28196778
parentd23d5d4cfeaf3e29a67e305d7c9b80c2a0ccfb56 (diff)
Support for bushes_classic foods (plantlife modpack)
-rw-r--r--depends.txt1
-rw-r--r--hunger.lua19
2 files changed, 20 insertions, 0 deletions
diff --git a/depends.txt b/depends.txt
index 7bc96ce..7d8d136 100644
--- a/depends.txt
+++ b/depends.txt
@@ -9,3 +9,4 @@ bushes?
docfarming?
farmingplus?
mtfoods?
+bushes_classic?
diff --git a/hunger.lua b/hunger.lua
index 28ca010..30e7a21 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -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)