Move target information from one entity to another

Started by dansamy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Move target information from one entity to another

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???

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For now, I only can think of…
Sun, 08/23/2020 - 14:21

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

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only way you can know if…
Sun, 08/23/2020 - 19:31

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.

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, thanks! Tomorrow I'll…
Sun, 08/23/2020 - 22:37

Ok, thanks! Tomorrow I'll test it