1
0
mirror of git://repo.or.cz/minetest_hbhunger.git synced 2024-11-13 22:00:36 +01:00

Remove debug output, push to 1.4

This commit is contained in:
BlockMen 2014-10-03 08:59:25 +02:00
parent ef78a05d51
commit 06207b44cd
3 changed files with 68 additions and 46 deletions

View File

@ -1,12 +1,72 @@
Minetest mod "Better HUD"
=========================
Version: 1.3.3
Version: 1.4
License of source code: WTFPL
-----------------------------
(c) Copyright BlockMen (2013-2014)
Using the mod:
--------------
This mod changes the HUD of Minetest.
It improves the apperance of the health and breath bar and adds a more fancy hotbar. Furthermore it adds a
custom crosshair, an armor bar (only for 3darmor mod) and a hunger bar. It includes also a mechanic for hunger.
You can create a "hud.conf" file to customize the positions of health, hunger, armor and breath bar. Take a look at "hud.conf.example" to get more infos.
!!IMPORTANT !!:
Keep in mind if running a server with this mod, that the custom position should be displayed correct on every screen size!!
=Hunger=
========
This mod adds a hunger mechanic to the game. Player actions like digging, placing and walking causes exhausion,
that lowers players saturation. Also every 800 seconds you lose 1 saturation point without doing anything.
If you are hungry (empty hunger bar) you will get damage and die in case you don't eat something.
Notice:
-------
You can disable this by setting "HUD_HUNGER_ENABLE = false" in "hud.conf", or "hud_hunger_enable = false" in minetest.conf.
In case of conflict hud.conf configuration is dominant.
Currently supported food:
-------------------------
- Apples (default)
- Animalmaterials (mobf modpack)
- Bread (default)
- Bushes
- bushes_classic
- Creatures
- Dwarves (beer and such)
- Docfarming
- Fishing
- Farming plus
- Farming (default and Tenplus1's fork)
- Food
- fruit
- Glooptest
- JKMod
- kpgmobs
- Mobfcooking
- Mooretrees
- Mtfoods
- mushroom
- mush45
- Seaplants (sea)
- Simple mobs
Example: 1 apple fills up the hunger bar by 1 bread, 1 bread (from farming) 2 breads in bar.
Although it show 20 hunger points (10 breads) in hunger bar,
you can fill it up to 30 points.(5 breads not shown then)
License of textures:
--------------------
hud_heart_fg.png - celeron55 (CC BY-SA 3.0), modified by BlockMen
@ -19,53 +79,10 @@ hud_armor_fg.png - Stu (CC BY-SA 3.0), modified by BlockMen
hud_armor_bg.png - Stu (CC BY-SA 3.0), modified by BlockMen
everything else is WTFPL:
(c) Copyright BlockMen (2013)
(c) Copyright BlockMen (2013-2014)
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.
Using the mod:
--------------
This mod changes the HUD of Minetest.
It improves the apperance of the health and breath bar and adds a more fancy hotbar. Furthermore it adds a
custom crosshair, an armor bar (only for 3darmor mod) and a hunger bar. It includes also a mechanic for hunger.
You can create a "hud.conf" to customize the positions of health, hunger, armor and breath bar. Take a look at "hud.conf.example" to get more infos.
!!NOTICE: Keep in mind if running a server with this mod, that the custom position should be displayed correct on every screen size!!
Hunger:
This mod adds hunger to the game. You can disable this by setting "HUD_HUNGER_ENABLE = false" in "hud.conf", or "hud_hunger_enable = false" in minetest.conf. In case of conflict hud.conf configuration is dominant.
Currently supported food:
- Apples (default)
- Animalmaterials (mobf modpack)
- Bread (default)
- Bushes
- bushes_classic
- Creatures
- Dwarves (beer and such)
- Docfarming
- Fishing
- Farming plus
- Food
- fruit
- Glooptest
- Mobfcooking
- Mooretrees
- Mtfoods
- mushroom
- mush45
- Seaplants (sea)
- Simple mobs
Example: 1 apple fills up the hunger bar by 1 bread, 1 bread (from farming) 2 breads in bar.
Altough it show 20 hunger points (10 breads) in hunger bar you can fill it up to 30 points. (5 breads not shown then)

View File

@ -80,3 +80,9 @@
-----
- Prevent crash with armor mod and missing player
- Add support for ethereal mod (by TenPlus1)
1.4
---
- New hunger mechanics/added experimental player-action based hunger
- Better crosshair texture, switched to "new" default hand
- Added support for farming redo mod, kpgmobs and jkmod

View File

@ -334,7 +334,6 @@ function hud.handle_node_actions(pos, oldnode, player, ext)
new = HUD_HUNGER_EXHAUST_MOVE
end
exhaus = exhaus + new
minetest.chat_send_all(exhaus)
if exhaus > HUD_HUNGER_EXHAUST_LVL then
exhaus = 0
local h = tonumber(hud.hunger[name])