Custom Mobs Crashing My Game

Started by CHaenitsch33 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Mobs Crashing My Game

I have been working on a BetterZombies mod recently, and I have created some custom mobs inside the mod. Since changing the textures of the mobs, when I attack or go near them, they crash my game (client side) instantly. Here is a crash log. 

 

https://drive.google.com/file/d/1u_JOBEVBg4VFfkqA2yVs2nNwHJ7eSI7t/view?usp=drive_link
 

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It looks like the mobs are…
Sun, 07/02/2023 - 20:58

It looks like the mobs are exploding for some reason, and the explosion is triggering ExplosiveZombieEffectProcedure to execute. But then ExplosiveZombieEffectProcedure has an "Explode at..." block somewhere, and that is triggering an explosion, which causes the procedure to run again, and so on. Your computer goes through this 1000 times before it decides to stop.

Try adding a global variable to stop the procedure from running while another version of the procedure is also running.