Watch closest entity in radius

Started by woodcreatures on

Topic category: Help with modding (Java Edition)

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Watch closest entity in radius

Hi,

I'm using the AI in the subject above but does not work don't know why

 

I create a mob which summons 2 more mobs. 2 summoned mobs have AI wacthes closeest to main mob but this does not happen. He moves away and they do nothing. Any idea ?

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
anyone an idea please ? I…
Sun, 04/25/2021 - 07:21

anyone an idea please ? I need to fix it

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would appreciate an idea…
Tue, 04/27/2021 - 08:52

I would appreciate an idea here, can't fix it

 

Last seen on 23:57, 31. Aug 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Under AI and goals, you can…
Tue, 04/27/2021 - 09:55

Under AI and goals, you can have them watch a mob of your choice. If they are the same model, you can have them follow the same mob type. If they are two different mob types, then that cannot be done in any way in the program. You will have to program the actual code itself.

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh I got it. They must be…
Tue, 04/27/2021 - 10:29

Oh I got it. They must be same model. Thank you much appreciated your reply

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry but it's still not…
Tue, 04/27/2021 - 10:41

Sorry but it's still not clear

This is my situation:

 

first mob: Paul   Model: Biped    texture: A

second mob: John   Model: Biped   texture: B

 

I want for John to follow Paul but this does ot happen even if using correct AI. Model is the same, they are both BIPED (the one offered from Mcreator I mean, not a custom one)

Please help me understand where I'm wrong

 

thank you,

Andrea

Last seen on 23:57, 31. Aug 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As stated before, any mobs…
Tue, 04/27/2021 - 10:53

As stated before, any mobs not the same mob cannot follow each other unless you do it manually.

A John can follow a John, a Paul can follow a Paul, but a John cannot follow a Paul.

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Much thanks again, now clear
Tue, 04/27/2021 - 14:37

Much thanks again, now clear

Last seen on 15:46, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry but it does not work…
Tue, 04/27/2021 - 17:30

Sorry but it does not work

Please check the picture: I want for my mob heart_mirror to follow same mob (no different model). it does not work. Where am I wrong ?

 

https://imgur.com/0y2IcLG