GOOD Ways to make entitys follow other entitys

Started by CodeLovingBison on

Topic category: Help with modding (Java Edition)

Last seen on 09:43, 1. Jun 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GOOD Ways to make entitys follow other entitys
Fri, 08/20/2021 - 07:37 (edited)

=================================

Introduction:

Making a raptor mob, wich follows the second alpha raptor mob.

=================================

My Attempts (Please read. they are very helpful. They just don't work well for me ):

-------------------------------------------------

 

1. Attempt: Make the raptors leashed to the alpha raptor.

Command: data modify entity @e[name="LEASHED_MOB",limit=1] Leash set from entity @e[name="THE_PULLER_MOB",limit=1] {}

1.1 Issue: Raptors can float when leashed. (Example: A cow floating in the air when leashed to a fence)

1.2 Issue: The Raptors can break off lashes. (Not a problem. If you do on entity tick procedures and modify entity data with execute command in the name of entity...)

1.3 Issue: You can see the leash...

---------------------------------------------------

2. Attempt: Make raptors be aggressive to the alpha raptor and do 0 damage.

2.1 Issue: The raptors leap at entities they attack, so it looks weird...

2.2 Issue: Alpha raptors turn red when attacked, even tho raptors do no damage.

---------------------------------------------------

3. Attempt: Do the same thing as the second one, but when the raptors get close to the alpha raptor, they join a team (When entitys are in one team, they don't get aggressive at each other.)

3. Issue: My mod uses a lot of teams (If a mob is in two teams at the same time, they won't work and. The mob will be aggressive...)

---------------------------------------------------

4. Attempt: Teleport raptors to the alpha raptor, when to far.

4.1 Issue: Easy to make. But Visualy it doesn't look natural...

---------------------------------------------------

5. Attempt: (I don know how to recreate this or is this possible. If someone knows, please tell!!In the AI Goals list, there is a task, wich makes entitys follow their owner. Maybe you can give the "owner" tag to the alpha raptor, so that the raptors would follow him.

5.1 Issue: I don't know if this will work!

---------------------------------------------------

=================================

Extra:

I'll be very happy and thankful if you will give me some hints on how to make entitys follow others. Since its really important (especially for my mod... ). If you can, please send me some visual examples how to do it!

=================================

:)

Edited by CodeLovingBison on Fri, 08/20/2021 - 07:37
Last seen on 09:43, 1. Jun 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
/data modify entity @e[name=…
Wed, 01/12/2022 - 21:08

/data modify entity @e[name="LEASHED_MOB",limit=1] Leash set from entity @e[name="THE_PULLER_MOB",limit=1] {}

Last seen on 20:07, 23. Apr 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! Could you tell me how…
Wed, 01/10/2024 - 21:30

Hello! Could you tell me how you managed to leash 2 mobs together? I do know about the command i am just not sure how to use it.

Any help is appreciated,

MTOH