Page 1 of 1

how to increase player's max hp?

PostPosted: Sun Apr 17, 2016 12:03
by davidthecreator
I want the player to have 100hp instead of 20
So how could I increase players maxhp to 100?

Re: how to increase player's max hp?

PostPosted: Sun Apr 17, 2016 12:55
by burli
Afaik it is not possible because it is hard coded in the core. But maybe I am wrong. I also would like to change the hp

Re: how to increase player's max hp?

PostPosted: Sun Apr 17, 2016 13:09
by Krock
Yes, it's hardcoded.
https://github.com/minetest/minetest/bl ... ants.h#L91
Problem bypass idea: Use armor to protect you against damage.

Re: how to increase player's max hp?

PostPosted: Sun Apr 17, 2016 13:15
by burli
Well, than you can modify it in the source code and compile it. But this would only work on your server, so I wouldn't recommend it

Re: how to increase player's max hp?

PostPosted: Wed May 18, 2016 12:58
by Wuzzy
There is an old feature request for this:
viewtopic.php?f=5&t=10347

Here's an issue on GitHub:
https://github.com/minetest/minetest/issues/2246

For some reason, it is labelled “Low priority”. :-(

Re: how to increase player's max hp?

PostPosted: Thu Mar 16, 2017 22:41
by emperor_genshin
hmm, there should simply be a way to replace the default health with another type of health system to extend HP (3D-Armors is a good example)...

It's possible to create something like that with the existing minetest modding API, however you may need to add few variables and integrate it together to work with the max health variable if the additional health value reaches less than or equal to the default max HP value.