minecraft:follow_mobs

Allows an entity to follow and gather around all types of mobs, both hostile and neutral mobs

Example Config

- key: minecraft:follow_mobs
  priority: 0
  args:
    speed: 1 # The speed at which to follow
    minDistance: 2 # The minimum distance
    maxDistance: 10 # The maximum distance