forked from mtcontrib/minetest_hbhunger
Add support for MTG shrooms, pizza, FR beans
This commit is contained in:
parent
98309f5a44
commit
f028f6c8d8
|
@ -1,6 +1,6 @@
|
||||||
Minetest mod: Hunger [hbhunger]
|
Minetest mod: Hunger [hbhunger]
|
||||||
===============================
|
===============================
|
||||||
Version: 0.3.2
|
Version: 0.3.3
|
||||||
|
|
||||||
License of source code: WTFPL
|
License of source code: WTFPL
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
@ -32,6 +32,7 @@ is supported by this mod (see below).
|
||||||
Currently supported food:
|
Currently supported food:
|
||||||
-------------------------
|
-------------------------
|
||||||
- Apples (default)
|
- Apples (default)
|
||||||
|
- red/brown mushroom (flowers)
|
||||||
- Animalmaterials (mobf modpack)
|
- Animalmaterials (mobf modpack)
|
||||||
- Bread (default)
|
- Bread (default)
|
||||||
- Bushes
|
- Bushes
|
||||||
|
@ -54,6 +55,7 @@ Currently supported food:
|
||||||
- mush45
|
- mush45
|
||||||
- Seaplants (sea)
|
- Seaplants (sea)
|
||||||
- Simple mobs
|
- Simple mobs
|
||||||
|
- Pizza
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
Eating an apple (from the default Minetest game) increases your satiation by 2,
|
Eating an apple (from the default Minetest game) increases your satiation by 2,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
hudbars
|
hudbars
|
||||||
default?
|
default?
|
||||||
|
flowers?
|
||||||
animalmaterials?
|
animalmaterials?
|
||||||
bucket?
|
bucket?
|
||||||
bushes?
|
bushes?
|
||||||
|
@ -26,3 +27,4 @@ mtfoods?
|
||||||
mush45?
|
mush45?
|
||||||
mushroom?
|
mushroom?
|
||||||
seaplants?
|
seaplants?
|
||||||
|
pizza?
|
||||||
|
|
10
hunger.lua
10
hunger.lua
|
@ -64,6 +64,10 @@ end
|
||||||
if minetest.get_modpath("default") ~= nil then
|
if minetest.get_modpath("default") ~= nil then
|
||||||
overwrite("default:apple", 2)
|
overwrite("default:apple", 2)
|
||||||
end
|
end
|
||||||
|
if minetest.get_modpath("flowers") ~= nil then
|
||||||
|
overwrite("flowers:mushroom_brown", 1)
|
||||||
|
overwrite("flowers:mushroom_red", 1, "", 3)
|
||||||
|
end
|
||||||
if minetest.get_modpath("farming") ~= nil then
|
if minetest.get_modpath("farming") ~= nil then
|
||||||
overwrite("farming:bread", 4)
|
overwrite("farming:bread", 4)
|
||||||
end
|
end
|
||||||
|
@ -316,6 +320,7 @@ if minetest.get_modpath("farming") and farming.mod == "redo" then
|
||||||
end
|
end
|
||||||
overwrite("farming:rhubarb", 1)
|
overwrite("farming:rhubarb", 1)
|
||||||
overwrite("farming:rhubarb_pie", 6)
|
overwrite("farming:rhubarb_pie", 6)
|
||||||
|
overwrite("farming:beans", 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("kpgmobs") ~= nil then
|
if minetest.get_modpath("kpgmobs") ~= nil then
|
||||||
|
@ -364,6 +369,11 @@ if minetest.get_modpath("ferns") ~= nil then
|
||||||
overwrite("ferns:horsetail_01", 1)
|
overwrite("ferns:horsetail_01", 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("pizza") ~= nil then
|
||||||
|
overwrite("pizza:pizza", 30, "", nil, 30)
|
||||||
|
overwrite("pizza:pizzaslice", 5, "", nil, 5)
|
||||||
|
end
|
||||||
|
|
||||||
-- player-action based hunger changes
|
-- player-action based hunger changes
|
||||||
function hbhunger.handle_node_actions(pos, oldnode, player, ext)
|
function hbhunger.handle_node_actions(pos, oldnode, player, ext)
|
||||||
if not player or not player:is_player() then
|
if not player or not player:is_player() then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user