[Mod] Hunger with HUD bar [1.1.0] [hbhunger]

User avatar
Wuzzy
Member
Posts: 4144
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by Wuzzy » Post

To be honest, I'm too lazy for this. Sorry.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
FreeGamers
Member
Posts: 651
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by FreeGamers » Post

lol, is that all?

I appreciate the honesty at least. :D
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

Revulent
Member
Posts: 12
Joined: Thu Jun 18, 2020 16:30
GitHub: Revulent
In-game: Virulent

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by Revulent » Post

Is there a way to adjust how quickly health regenerates with this?

User avatar
Wuzzy
Member
Posts: 4144
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by Wuzzy » Post

No.

The mod is fine as-is. It is working, and it is finished. I don't plan to add any features.
There are probably billions of ways you could implement hunger, and this mod is just one of them.

I'm afraid for a new hunger mechanic you need a new mod. But at least the “progress bar” is in a different mod, so if you're a coder, you don't have to start from zero.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
FreeGamers
Member
Posts: 651
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by FreeGamers » Post

Revulent, Why not try to make it add 2 HP points instead of 1, that would x2 the speed of healing wouldnt it?

Look at this section in the source code.

Code: Select all

-- heal player by 1 hp if not dead and satiation is > 15 (of 30)
			if h > 15 and hp > 0 and player:get_breath() > 0 then
				player:set_hp(hp+1)
				-- or damage player by 1 hp if satiation is < 2 (of 30)
				elseif h <= 1 then
					if hp-1 >= 0 then player:set_hp(hp-1) end
				end
			end
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

ThorfinnS
Member
Posts: 288
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by ThorfinnS » Post

Alternatively, he's done a great job establishing his constants at the beginning of init.lua.

Just search for "800" (the number of seconds to use 1 satiation point) and tweak the values in the constants in that and adjacent lines and see if you can make it work the way you like.

Since Wuzzy is not updating it, you won't have to put your changes back in very often. Maybe at a major minetest release, at most.

User avatar
Rayjack
Member
Posts: 21
Joined: Thu Nov 15, 2018 18:18
In-game: Rayjack

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by Rayjack » Post

fyi the mod as a .bundle is not something that is obvious on how to extract it in linux, the work around is to download (this and HUD bars) using the "content" option in the game (but it would be great if the mod creator used a different format like zip or tar)

Duvalon
Member
Posts: 25
Joined: Thu Jun 18, 2020 00:32
Location: Canada

Re: [Mod] Hunger with HUD bar [1.0.1] [hbhunger]

by Duvalon » Post

Hi Wuzzy,

Would you please add this french translation?

Code: Select all

# textdomain:hbhunger
Satiation=Satiété
Thanks!

User avatar
Wuzzy
Member
Posts: 4144
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Version 1.1.0

by Wuzzy » Post

Version 1.1.0 released!
  • Add "/satiation" command to set satiation
  • Add Russian locale by lmk
  • Play sound at eater again
  • Random sound pitch (slightly)
  • Add MTG blueberries to food registrations
  • Lots of code refactoring
I have added Duvalon's French translation, but sadly it didn't make it into this release.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests