Increase damage of an attack

Started by Gengar_Marc127 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Increase damage of an attack

Basically when a mob is attacked cancel the DMG and apply a new one, if I cancel the trigger and apply dmg mc crashes.

Similarly to this post right here. And there is some discussion around the issue here.

Last time I did this, I used the "Before Entity is Hurt" global trigger, but since I can't find it in 2025.1, is there a way to do it?

I would really appreciate an answer, thanks in advance.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's been a while since I've…
Sun, 05/11/2025 - 04:08

It's been a while since I've used MCreator, but I'm pretty sure the "Entity is attacked" trigger does just that.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried it, and it doesn…
Sun, 05/11/2025 - 13:15

I've tried it, and it doesn't work like that, I don't remember why, but they were different, using it ended up crashing anyway. But thanks anyway.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then there's probably…
Sun, 05/11/2025 - 22:35

Then there's probably something wrong with your procedure. I just tested it, and it works fine...no errors and no crash.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Really?? Could you send me a…
Mon, 05/12/2025 - 13:49

Really?? Could you send me a photo of the procedure, please? Or if you can't could you describe it to me? Thanks in advance.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The issue probably lies here…
Mon, 05/12/2025 - 21:35

The issue probably lies here, which is easy to miss.
https://imgur.com/a/fMp2ow9

If my assumption is correct, you'll need to add a check to make sure it doesn't infinitely loop.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oooh, that makes total sense…
Tue, 05/13/2025 - 14:26

Oooh, that makes total sense, it's probably because of that, thank you so much!!

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem! Let me know if…
Tue, 05/13/2025 - 21:16

No problem! Let me know if you have any further difficulties.