Entity keeps creating lightning

Started by GamingRaptors1x on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity keeps creating lightning

I made it so my entity spawns lightning around it when hurt, but after it spawns lightning it keeps spawning even more until it crashes my game. I've already made it immune to lightning, fire, and explosions but it keeps spawning more lightning. It doesn't always do this but after a while of hurting it, that's when it starts. I tried giving it fire resistance on spawn in case its stepping in fire and thats whats hurting it but nothing seems to work.