Topic category: Help with Minecraft modding (Java Edition)
Hello, I have created a mod that adds custom bosses and projectiles.
In my mod, I have created death messages when the boss is defeated, depending on the side chosen by the player. BUT the problem is that my game crashes every time I try to kill a boss with a custom projectile.
However, when I kill it by hand, the game works perfectly and gives me the boss death message.
In the crash report, this is due to a “ticking entity” problem.
So I did some research and realized that it was my custom projectile that was causing the crash.
After some more research, I noticed that another custom boss in my mod doesn't crash the game, even if I kill it with a custom projectile. The difference is that it doesn't display a death message once defeated.
I figured that maybe it was because having to display the death message and the damage from the custom projectile at the same time was causing the crash.
So I added a “wait 20 ticks then on the server-side” to the death message. But then the problem was that it was the message that was causing the game to crash, and in the crash report, the problem became “Exception in server tick loop.”
So I removed the “wait 20 ticks then on the server-side.”
Does anyone have a solution?
can you send the procedure that sends the message and the crash logs?
Yes, of course, here is the procedure that sends the message.

what triggers that procedure?
And here's the crash-report :
The rest of the crash-report

Sorry, I had to send it in several parts, one image at a time, because I couldn't post it any other way.
For your information, the custom projectile is sent by holding an object in your hand. The command is linked to a keyboard.
yeah can you show the procedure for shooting the projectile?
The procedure is triggered when the entity called “Jabu” dies.
Here is the procedure for launching the projectile. I use variables for an energy bar called “Cosmos” for information.
And the blue object is a classic item, not a tool or a bow.

hm so somehow the projectile doesn't retain who shot it..
this should fix the crash but it will probably make it not give you the advancement
I just tried it and it didn't change anything.
The game crashes after Jabu is killed by the custom projectile.
Okay, I found the problem, and honestly... it's ridiculous.
To put it simply, the procedure that triggers Jabu's death message has four variants, since there are four camps.
BUT, the “Hades camp” achievement had fire as its logo. Generally, fire in Minecraft is an animated texture.
So I replaced it with a classic item, like blaze powder, and now the game doesn't crash at all.
w h a t
okay.