Started by
Braiinn
on
Topic category: Help with Minecraft modding (Java Edition)
I want to create a kind of immortality, It will work like this, when the player takes damage and gets 1 life, he doesn't take any more damage, any ideas how i can do this?
Edited by Braiinn on Tue, 09/14/2021 - 17:38
On tick update (Set health of "entity" to "max health on entity")
Another (and better way)
Global trigger "Entity dies"
If "Is entity player or does entity have "blank" in main hand" Cancel event that triggered procedure
This ^ effectively makes it so the entity affected can not die because it literally cancels their death
IndyJacksonTT you can send me images about the second way pls?
You could just give the player a resistance effect of 219 for however long you want, but this is the easy way out.