[Mod] Stamina [stamina] - hunger, exhaustion

Post Reply
sofar
Developer
Posts: 2132
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

[Mod] Stamina [stamina] - hunger, exhaustion

by sofar » Post

This is a continuation of parts of Blockmen's hud_hunger mod, but then stripped down and focussing on the core parts of the hunger mechanism.

The player will lose "stamina" by doing stuff, like:
- walking
- crafting
- digging
- fighting

Once the player has no more stamina, the player will start to take damage. If the player has enough stamina, the player will gain health. Stamina is converted to health to heal the player, which means that to go from near-death to full health, you will have to eat several times. As long as the player has low stamina, they will not be fully healed.

License: LGPL-2.1, with artwork covered by fully reusable licenses
Dependencies: 3d_armor(optional)

Project page: https://github.com/minetest-mods/stamina
Latest Release: https://github.com/minetest-mods/stamin ... master.zip

Image

ektor
Member
Posts: 78
Joined: Sat Sep 24, 2016 11:59
IRC: dtarcz
In-game: ektor
Contact:

Re: [mod]stamina[stamina] hunger, exhaustion

by ektor » Post

Well, I use on my server those mods:
  • minetest-3d_armor
  • minetest_hbarmor
  • minetest_hbhunger
  • minetest_hudbars
  • sprint


Can I put this stamina mod without breaking everything ? And what did I have to remove ? minetest_hbhunger and minetest_hudbars maybe ?
Vive Minetest!

User avatar
RSLRedstonier
Member
Posts: 451
Joined: Wed May 10, 2017 21:00
GitHub: RSL-Redstonier
In-game: RSLRedstonier
Location: some were in middle earth

Re: [mod]stamina[stamina] hunger, exhaustion

by RSLRedstonier » Post

ektor wrote:Well, I use on my server those mods:
  • minetest-3d_armor
  • minetest_hbarmor
  • minetest_hbhunger
  • minetest_hudbars
  • sprint


Can I put this stamina mod without breaking everything ? And what did I have to remove ? minetest_hbhunger and minetest_hudbars maybe ?
just to let you know those files should be named
  • 3d_armor
  • hbarmor
  • hbhunger
  • hudbars
  • sprint

most of the popular/welldone mods will counter this with a config file but some wont. So mod files should usally be striped of prefixes and sufexex
"A programmer is just a tool which converts caffeine into code"

try out my skytest mod always being updated!
viewtopic.php?f=9&t=17568

sofar
Developer
Posts: 2132
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]stamina[stamina] hunger, exhaustion

by sofar » Post

ektor wrote:Well, I use on my server those mods:

minetest_hbarmor
minetest_hbhunger
minetest_hudbars
This mod isn't meant to work correctly with the hudbars (and derivatives) that wuzzy maintains.

sofar
Developer
Posts: 2132
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]stamina[stamina] hunger, exhaustion

by sofar » Post

RSLRedstonier wrote:PLEASE TRIM YOUR QUOTES
All of this is off-topic, and all of these mods already have a `mod.conf`, so he doesn't need to rename any folder at all.

ektor
Member
Posts: 78
Joined: Sat Sep 24, 2016 11:59
IRC: dtarcz
In-game: ektor
Contact:

Re: [mod]stamina[stamina] hunger, exhaustion

by ektor » Post

sofar wrote:
ektor wrote:Well, I use on my server those mods:

minetest_hbarmor
minetest_hbhunger
minetest_hudbars
This mod isn't meant to work correctly with the hudbars (and derivatives) that wuzzy maintains.
OK sofar, thanks.
So I'll have to test in local with singleplayer to figure out the best configuration I am trying to obtain... :)
Vive Minetest!

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests