Page 1 of 1
Invulnerability for players

Posted:
Sun Aug 24, 2014 15:29
by Wuzzy
Hi!
Is it possible to make a certain player invulnerable, so that they do not take any damage anymore and can not die?
And how?
Edit:
I have already tried to set the armor group immortal=1 by this code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
player:set_armor_group({immortal=1})
The player is at least still vulnerable to fall damage, which is of course not a complete solution.
Re: Invulnerability for players

Posted:
Sun Aug 24, 2014 16:07
by Calinou
Giving 20 HP every second or so is a decent solution, as well as using the immortal group, but this doesn't guard against instantly-killing damage sources (like Map Tools' kill blocks).
Re: Invulnerability for players

Posted:
Sun Aug 24, 2014 17:00
by Wuzzy
No, this is not a good solution. The player is just less vulnerable, not invulnerable. As you said, this has holes. It’s just a hack.
I noticed that the “immortal” group has a lot of holes, actually. The immortal group does not protect from fall damage, it does not protect from set_hp, it does not protect from drowning damage, it does not protect from damage_per_second nodes (i.e. lava). It seems the only thing it protects from is damage from punches.
What I might really want would be a switch to turn off all health manipulations for a certain player. Or something like that.
Re: Invulnerability for players

Posted:
Mon Aug 25, 2014 15:24
by shaheerziya
What if a player kept healing itself and revive (instantly at the same place?)
Re: Invulnerability for players

Posted:
Mon Aug 25, 2014 15:47
by davidthecreator
you can just disable damage before starting to play
Re: Invulnerability for players

Posted:
Mon Aug 25, 2014 17:12
by Calinou
shaheerziya wrote:What if a player kept healing itself and revive (instantly at the same place?)
It is not possible to close the death screen without client intervention.
davidthecreator wrote:you can just disable damage before starting to play
What Wuzzy wants is an individual damage setting, per-player.
Re: Invulnerability for players

Posted:
Mon Aug 25, 2014 17:25
by twoelk
inb4 the rise of the "airsuit", an armor on par with the sword of that same material.
Re: Invulnerability for players

Posted:
Tue Aug 26, 2014 17:41
by Wuzzy
Bummer. So it seams that Minetest does not allow for this right now. Well, I guess I have to go with the hack for now. :(
Re: Invulnerability for players

Posted:
Tue Sep 02, 2014 02:51
by davidthecreator
download 3d armor mod and make it unbreakable and super defensefull i tested this out with diamond armor i shooted an golden arrow from a bow (throwing mod) up in the air and it done no damage when it faled on me but when i wast wearing diamond armour it dealth me 5 half hearts of damage armour also protects from mobs plus looks cool to just wear a full diamond set or even code it up to even stronger than it was
Re: Invulnerability for players

Posted:
Tue Sep 02, 2014 11:28
by Minetestforfun
@davidthecreator
Good idea ! lord of the test has already an unbreakable armor if you want try :)