How i can do immortality?

Started by Braiinn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How i can do immortality?
Tue, 09/14/2021 - 17:38 (edited)

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
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On tick update (Set health…
Tue, 09/14/2021 - 18:47

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

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
IndyJacksonTT you can send…
Tue, 09/14/2021 - 19:19

IndyJacksonTT you can send me images about the second way pls?

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could just give the…
Wed, 09/15/2021 - 15:22

You could just give the player a resistance effect of 219 for however long you want, but this is the easy way out.