[Fixed] Mob AI Completely Obliterating Itself When Spawned In A Raid

Started by Joe Is A Man on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Fixed] Mob AI Completely Obliterating Itself When Spawned In A Raid
Thu, 01/23/2025 - 03:10 (edited)

I made a boss spawn in raids. It worked fine. I added some procedures to it. And it stopped working. I made a spawner that would appear in the raid and spawn said boss. And it worked. I made an achievement for killing the boss, added the achievement to the trigger, it stopped working, and so did the spawner. I didn't change anything about either the boss's nor the spawner's AI. It just stopped working because I made an achievement. Yes, you get the achievement when it dies, issue is, it doesn't move or attack. This ONLY happens when the boss is spawned near or in a raid. (directly or not) 

 

How does this work? And how do I fix it?

 

And just some thing to note, is that it flies, yes I have the AI flying movement and attack blocks, and have the flying entity box checked.

Edited by Joe Is A Man on Thu, 01/23/2025 - 03:10
Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured out a way to fix…
Thu, 01/23/2025 - 03:13

I figured out a way to fix this. I made the boss not count as a raider, and kept the spawner to make it appear in raids. I made the boss summon an invisible entity that counts as a raider every tick, these entities have no AI and despawn after one tick. (I gave them a model other than biped so the banners would not appear).

But yeah, that's basically it, sometimes there are extra entities so I also made a command that kills them when the boss dies. So if anyone else has this problem, here you go.