From 06207b44cdba2ca7ec93e27590ae84ad13f60996 Mon Sep 17 00:00:00 2001 From: BlockMen Date: Fri, 3 Oct 2014 08:59:25 +0200 Subject: [PATCH] Remove debug output, push to 1.4 --- README.txt | 107 +++++++++++++++++++++++++++++--------------------- changelog.txt | 6 +++ hunger.lua | 1 - 3 files changed, 68 insertions(+), 46 deletions(-) diff --git a/README.txt b/README.txt index 3e920ff..4a9474d 100644 --- a/README.txt +++ b/README.txt @@ -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) diff --git a/changelog.txt b/changelog.txt index bbc4175..4eac6c5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/hunger.lua b/hunger.lua index c2c93e7..e26c000 100644 --- a/hunger.lua +++ b/hunger.lua @@ -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])