how to increase player's max hp?

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

how to increase player's max hp?

by davidthecreator » Sun Apr 17, 2016 12:03

I want the player to have 100hp instead of 20
So how could I increase players maxhp to 100?
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: how to increase player's max hp?

by burli » Sun Apr 17, 2016 12:55

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
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: how to increase player's max hp?

by Krock » Sun Apr 17, 2016 13:09

Yes, it's hardcoded.
https://github.com/minetest/minetest/bl ... ants.h#L91
Problem bypass idea: Use armor to protect you against damage.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: how to increase player's max hp?

by burli » Sun Apr 17, 2016 13:15

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
 

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

Re: how to increase player's max hp?

by Wuzzy » Wed May 18, 2016 12:58

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”. :-(
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
emperor_genshin
Member
 
Posts: 32
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin
In-game: Emperor_Genshin - Genshin

Re: how to increase player's max hp?

by emperor_genshin » Thu Mar 16, 2017 22:41

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.
Minetest Modder
Server Wanderer

Signature
"I have no words that would do justice to the atrocities you commit to the English language, as well as your continued assaults on the concepts of basic literacy and logical reasoning."

_Tom Gioconda
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 14 guests

cron