Minecraft Crashes when I Spawn my Custom Mob

Published by Axthermal on Tue, 01/14/2020 - 02:25
Upvotes: 2
Issue description

I created a mod where it adds a new dimension, some new items, and a mob. Every time I try to spawn the mob, my game crashes instantly. It just freezes the screen, and I can't exit out unless I use task manager or alt + F4. I tried checking out another issue called Custom Mob Crashes Minecraft instantly when spawned, but that didn't have a solution. I am using MCreator version 2019.5, Minecraft version 1.12.2.

Attachment Size
My mod1.48 MB 1.48 MB

Issue comments

You are most likely doing something like using procedure on mob hurt and spawning a thing that hurts mob again which in turn triggers this procedure again until it crashes. It might not be directly this, but something similar, this usually causes this problem.

In this case please export your workspace to shareable ZIP and attach it here so I can check it. Please tell me which mod element to check too.

Edit the ticket and upload the file in the attachments section.

Submitted by Axthermal on Thu, 01/16/2020 - 22:04

Check the darth vader element please.

Your custom OGG sounds you use with the mob are not valid OGG files and cause a crash when mob spawns and plays living sound.

Submitted by Axthermal on Sun, 01/19/2020 - 00:43

Thanks! I fixed it and it works perfectly!

You are welcome! I am glad I could help :) If you like what we do, consider donating to us to help us keep this project up.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.