Need help with explosions not hurting players. (2024.3)

Started by dawood3510 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with explosions not hurting players. (2024.3)

Can anyone help me with this problem?

 

I need to make it so that explosions won't hurt the player. but I don't know how to do that!

I tried using this block: "disable damage of (event/target entity) if (true or false) otherwise enable it"
but it just makes the player invincible to everything! 

Please help