summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2014-04-06 16:17:56 +0200
committerBlockMen <nmuelll@web.de>2014-04-06 16:17:56 +0200
commitc8c79bc275f4e38d6aec779030417aad200602ac (patch)
treeda36e2b04e95030805b1b69bef59dcf33aceb96c
parent09fc5ee48ae2a9adc7752e8521302b3263573436 (diff)
parentc544da116111c176c464aaf630463188bf46fe25 (diff)
Merge pull request #2 from CiaranG/master
More mod support and override improvement
-rw-r--r--depends.txt14
-rw-r--r--hunger.lua26
2 files changed, 37 insertions, 3 deletions
diff --git a/depends.txt b/depends.txt
index 331d858..744d7a4 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1 +1,13 @@
-default \ No newline at end of file
+default
+mobs?
+moretrees?
+dwarves?
+animalmaterials?
+fishing?
+glooptest?
+bushes?
+docfarming?
+farmingplus?
+mtfoods?
+bushes_classic?
+mushroom?
diff --git a/hunger.lua b/hunger.lua
index 106fe6c..f1cfb39 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -54,7 +54,6 @@ local function overwrite(name, hunger_change, replace_with_item, poisen)
minetest.registered_items[name] = tab
end
-minetest.after(0.5, function()--ensure all other mods get loaded
overwrite("default:apple", 2)
if minetest.get_modpath("farming") ~= nil then
overwrite("farming:bread", 4)
@@ -117,6 +116,30 @@ 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("mushroom") ~= nil then
+ overwrite("mushroom:brown", 1)
+ overwrite("mushroom:red", 1, "", 3)
+end
+
if minetest.get_modpath("docfarming") ~= nil then
overwrite("docfarming:carrot", 2)
overwrite("docfarming:cucumber", 2)
@@ -164,4 +187,3 @@ if minetest.get_modpath("mtfoods") ~= nil then
overwrite("mtfoods:apple_cider", 2)
overwrite("mtfoods:cider_rack", 2)
end
-end)