Topic category: Help with Minecraft modding (Java Edition)
Hello! I'm making a boss that changes its form, and you know that's impossible in MCreator unless you despawn the current entity and spawn another.
Well, here is the problem: I want to make a boss line that for my mod and, then, submit to Crispy_chips1234 boss tournament https://mcreator.net/comment/147573
He is gonna use a mod that, I think, when you click with an item a mob and another, they will fight. I think that, if he uses the item in my boss, it will forget who it is attacking when it changes form.
I want to send the information about the target of the boss from one form to the other, to make the both of them attack the same target and don't forget what the boss was doing. Any ideas???
For now, I only can think of making the second entity attack everything on the AI part. Then, on conditions, search the original entity and see what is it's target, and make that the second entity can only attack the first entity's target.
Is that gonna work? I'm not very sure
The only way you can know if it'll work is to test it. But it really shouldn't be a problem. And as long as your second entity form has the AI of a mob and will attack anyone who attacks it, once the other boss attacks yours, it should automatically start attacking again anyways if all else fails.
Ok, thanks! Tomorrow I'll test it