How to disable explosion damage for players?

Started by KWatStudios on

Topic category: Help with modding (Java Edition)

Last seen on 20:01, 9. Oct 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to disable explosion damage for players?

I am making a mod with a status effect that disables explosion damage while you have it, but I can't figure out how to do it. Everything I've looked up says to use the cancel event block to disable damage using global events, but that hasn't worked, neither has using the disable damage for __ otherwise enable it block. Can anyone help me with this?

Last seen on 20:14, 9. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This worked for me, it does…
Wed, 10/09/2024 - 20:07

This worked for me,

it does however still push you around.