How to make entity follow owner, but NOT teleport to owner if they get far away

Started by Wisy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entity follow owner, but NOT teleport to owner if they get far away

Think like the follow owner AI task, but without the entity teleporting to the owner when they get too far. The placeholder i have right now kind of works, where they will follow the owner if they have anything or nothing in their hand, but they will disregard the owner if they even if they get just a little too far away. Anyone able to help with this?

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The minimum distance in the…
Sun, 09/10/2023 - 23:23

The minimum distance in the ai task is 10 blocks and mobs seem to teleport to their owner around 10 blocks.

Maybe increase minimum distance to a higher number

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
based on my experimentation,…
Mon, 09/11/2023 - 01:42

based on my experimentation, the minimum distance in the ai task is how closely behind the entity will follow behind the owner entity, and the maximal distance dosent seem to do anything, so i don't know what to do since i cant use that block since its the one that enables the teleportation in the first place.