How to set Incoming Damage to 0?

Started by FiveNights2161 on

Topic category: Help with MCreator software

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to set Incoming Damage to 0?

I'm making a mod that has it's own HP Variable, but I can't figure out how to make it so that damage won't touch the Vanilla HP until the Player's Variable HP is at 0, I tried using Return, but that doesn't seem to help.

What do I do?

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm using specifically a…
Mon, 05/04/2026 - 00:34

I'm using specifically a Return Number Value, which makes this even more confusing

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm using 2026.1 on Neoforge…
Mon, 05/04/2026 - 01:41

I'm using 2026.1 on Neoforge 1.21.1 by the way

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah, gotcha, thanks! How…
Mon, 05/04/2026 - 17:15

Ah, gotcha, thanks!

How would you recommend doing it?
I'm not really trying to stop the player from getting hit entirely, I'm just trying to set the damage to the player's vanilla health that would normally be taken to zero

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I found the block…
Mon, 05/04/2026 - 17:18

Nevermind, I found the block in question
Thanks!