Started by
Gengar_Marc127
on
Topic category: Help with Minecraft modding (Java Edition)
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.
It's been a while since I've used MCreator, but I'm pretty sure the "Entity is attacked" trigger does just that.
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.
Then there's probably something wrong with your procedure. I just tested it, and it works fine...no errors and no crash.
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.
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.
Oooh, that makes total sense, it's probably because of that, thank you so much!!
No problem! Let me know if you have any further difficulties.