How to disable explosion damage for players?

Started by KWatStudios on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to disable explosion damage for players?
Thu, 10/10/2024 - 19:38 (edited)

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?

Edited by KWatStudios on Thu, 10/10/2024 - 19:38
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.

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It worked! Thank you!
Thu, 10/10/2024 - 19:38

It worked! Thank you!