Entity Groups (Entity follows entity)

Started by GodDoge on

Topic category: Help with modding (Java Edition)

Last seen on 13:06, 6. Jul 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Groups (Entity follows entity)

im trying to make a group leader with members following it, but there arent much forums about this, and they're either not answered or are too complicated. i just need something simple to actually achieve this

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure there's a …
Sat, 09/30/2023 - 01:52

I'm pretty sure there's a 'follow entities of same type' option in the Mob AI settings, which replicates the behavior used for fish and whatnot. (I have not tried this myself, and cannot guarantee it will suite your purposes.) Otherwise, you could try to manually get them to follow each other using conditions in the Mob AI. Just be aware this behavior is a lot more complicated than it sounds, and hard coding it will almost certainly be more trouble than it's worth, especially as anything to do with overriding pathfinding is a bit of a pain.