A Minetest mod which adds a hunger mechanic to the game.
Go to file
bri cassa 3732bd9920 Merge remote-tracking branch 'upstream/master' 2022-08-26 14:59:13 +02:00
locale Add French translation 2020-11-04 15:05:48 +01:00
sounds Modifie le son du joueur qui mange 2020-01-05 18:31:08 +01:00
textures Change health bar color+icon on poisoning 2016-08-05 15:29:13 +02:00
.mailmap Add Wuzzy to mailmap 2022-08-01 13:58:37 +02:00
README.md Version 1.1.2 2021-08-28 20:17:25 +02:00
hunger.lua Add support for fake players 2021-08-28 10:58:07 +02:00
init.lua Merge remote-tracking branch 'upstream/master' 2020-11-07 11:35:06 +01:00
mod.conf Move metadata to mod.conf 2019-04-01 13:06:56 +02:00
register_foods.lua Hearty stew is no longer poisonous 2021-06-08 14:07:52 +02:00
screenshot.png Add screenshot 2016-11-03 23:17:39 +01:00

README.md

Hunger with HUD bar [hbhunger]

  • Version: 1.1.2

Using the mod

This mod adds a mechanic for hunger. This mod depends on the HUD bars mod [hudbars], version 1.4.1 or any later version starting with “1.” or “2.”.

About hunger

This mod adds a hunger mechanic to the game. Players get a new attribute called “satiation”:

  • A new player starts with 20 satiation points out of 30
  • Actions like digging, placing and walking cause exhaustion, which lower the satiation
  • Every 800 seconds you lose 1 satiation point without doing anything
  • At 1 or 0 satiation you will suffer damage and die in case you don't eat something
  • If your satiation is 16 or higher, you will slowly regenerate health points
  • Eating food will increase your satiation (Duh!)

Important: Eating food will not directly increase your health anymore, as long as the food item is supported by this mod (see below).

Careful! Some foods may be poisoned. If you eat a poisoned item, you may still get a satiation boost, but for a brief period you lose health points because of food poisoning. However, food poisoning can never kill you.

Statbar mode

If you use the statbar mode of the HUD Bars mod, these things are important to know: As with all mods using HUD Bars, the bread statbar symbols represent the rough percentage out of 30 satiation points, in steps of 5%, so the symbols give you an estimate of your satiation. This is different from the hunger mod by BlockMen.

You gain health at 5.5 symbols or more, as 5.5 symbols correspond to 16 satiation points. You may lose health at exactly 0.5 symbols, as 0.5 symbols correspond to 1-2 satiation points.

Supported food

All mods which add food through standard measures (minetest.item_eat) are already supported automatically. Poisoned food needs special support.

Known supported food mods

  • Apple and Blueberries from Minetest Game [default]
  • Red and brown mushroom from Minetest Game [flowers]
  • Bread from Minetest Game [farming]
  • [animalmaterials] (Mob Framework (mobf modpack))
  • Bushes [bushes]
  • [bushes_classic]
  • Creatures [creatures]
  • [dwarves] (beer and such)
  • Docfarming [docfarming]
  • Ethereal / Ethereal NG [ethereal]
  • Farming Redo [farming] by TenPlus1
  • Farming plus [farming_plus]
  • Ferns [ferns]
  • Fishing [fishing]
  • [fruit]
  • Glooptest [glooptest]
  • JKMod ([jkanimals], [jkfarming], [jkwine])
  • [kpgmobs]
  • [mobfcooking]
  • [mooretrees]
  • [mtfoods]
  • [mushroom]
  • [mush45]
  • Seaplants [sea]
  • Simple mobs [mobs]
  • Pizza [pizza]
  • Not So Simple Mobs [nssm]

Supported mods without optional dependency (mods provide their own support)

  • Food ([food], [food_basic])
  • Sweet Foods [food_sweet]

Example

  • Eating an apple (from Minetest Game) increases your satiation by 2;

Licensing

This mod is free software.

Source code

  • License: LGPL v2.1
  • Author: by Wuzzy (2015-2016)
  • Forked from the “Better HUD (and hunger)” mod by BlockMen (2013-2015), most code comes from this mod.

Textures

  • hbhunger_icon.png—PilzAdam (MIT License), modified by BlockMen
  • hbhunger_bgicon.png—PilzAdam (MIT License), modified by BlockMen
  • hbhunger_bar.png—Wuzzy (MIT License)
  • hbhunger_icon_health_poison.png—celeron55 (CC BY-SA 3.0), modified by BlockMen, modified again by Wuzzy
  • Everything else: MIT License, by BlockMen and Wuzzy