How to make player not take damage?

Started by Stanstillplays on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make player not take damage?

Title is pretty self explanatory, I want to make the player invincible to all damage sources, for version 1.21.4. I am new to this but I've managed to make an armor that can do this but I want to apply the triggers to the player's entity, which I don't know how to do. Also, I've only realized now that I don't have a plugin for 1.21.4 so if anyone can provide me with one that would be nice. Please and Thank You.

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Easy make a procedure and…
Sat, 05/31/2025 - 15:08

Easy make a procedure and set the global trigger to on world tick update or on entity tick update then use the block execute command and put in the command effect give @a resistance 1000000 255 true

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea, my fault, I wasn't…
Sat, 05/31/2025 - 15:43

Yea, my fault, I wasn't specific enough, I meant to be immune to damage as in cancel the damage event, not just be immune to it, The void ignores resistance and I want to be immune to /kill too. 

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well idk how to do that but…
Sat, 05/31/2025 - 15:49

Well idk how to do that but good luck