mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-11 19:10:21 +01:00
Support for bushes_classic foods (plantlife modpack)
This commit is contained in:
parent
d23d5d4cfe
commit
4eff5b7850
|
@ -9,3 +9,4 @@ bushes?
|
||||||
docfarming?
|
docfarming?
|
||||||
farmingplus?
|
farmingplus?
|
||||||
mtfoods?
|
mtfoods?
|
||||||
|
bushes_classic?
|
||||||
|
|
19
hunger.lua
19
hunger.lua
|
@ -116,6 +116,25 @@ if minetest.get_modpath("bushes") ~= nil then
|
||||||
overwrite("bushes:basket_pies", 15)
|
overwrite("bushes:basket_pies", 15)
|
||||||
end
|
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
|
if minetest.get_modpath("docfarming") ~= nil then
|
||||||
overwrite("docfarming:carrot", 2)
|
overwrite("docfarming:carrot", 2)
|
||||||
overwrite("docfarming:cucumber", 2)
|
overwrite("docfarming:cucumber", 2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user