#How to make player immortal?

1 messages · Page 1 of 1 (latest)

fringe lava
#

Hi guys, any idea on how to make a player remain with no less than half-heart?
I would like players with a specific tag to practically be immortal.

Pls help 🙂

jaunty pathBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1731747638:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

steady surge
#

give them resistance 6 that negates all damage I think

fringe lava
#

but I need them to be able to get to half heart, not just be full-hearts all the time.

steady surge
#

give it to them when they have half a heart?

fringe lava
#

and what if they just go from 1 heart to 0 hearts?

steady surge
#

hmm yea umm

fringe lava
#

I mean, that would be instant death, no time to apply any effect

steady surge
#

Then I don't think it's possible

half bramble
#

If you can use an item, you could revive them with a totem and then set their health to 1hp with resistance 5 or bigger

fringe lava
#

Thanks for the help anyway
I'll wait for some advanced datapacker to come out with something feasible

fringe lava
half bramble
#

You may also be able to do some tricks with enchantments but I’m not sure

#

Haven’t done much with them

#

I don’t think anything else can react to damage before it gets applied

steady surge
#

Wait I think advancements can

#

aah but only when an entity hits the player hmm...

half bramble
#

Afaik they trigger instantly after but one could try giving health then, it’s worth a try

half bramble
steady surge
#

really?

half bramble
#

Yep

#

I use it to detect death of any source in a pack of mine

steady surge
#

then why is it called entity_hurts_player xD

half bramble
steady surge
#

wait whut

#

xD

#

mojang really loves consitancy I guess xD

fringe lava
steady surge
#

Idk those are things you should try

#

since the order in which things are done in mojangs code may make it possible

half bramble
#

What do you need it for, maybe you need to change your approach

#

Like - why is using another reason to set them to half a heart or make them invulnerable at full health or something else not feasible

#

The exact thing you want is either impossible or uses a really unknown mechanic that we can’t think of

steady surge
#

datapacks are still limited by what they can do so sometimes there just is no way to make something work (sadly)

#

but still compared to datapacks before 1.18 the things we can do now are insane

fringe lava
#

anyway, I'll stick to the mod implementation for this, I guess that's still the only way

jaunty pathBOT