How to make player immune to blast damage

Started by CoolGuy97 on

Topic category: Help with Minecraft modding (Java Edition)

Last seen on 18:29, 24. Oct 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make player immune to blast damage

Is there any way to make the player immune to explosions like using an attribute or preferably a potion effect


What I’ve tried is a before entity is hurt>if entity is player>if damage type is explosion>return FAIL


But I don’t think it works and it could probably be more efficient 





Thanks, i need to know for my new superhero mod!!!