follow
fun Entity.follow(plugin: Plugin, target: Entity, speed: Double = 1.0, stopDistance: Double = 2.0): TaskHandle
Makes this entity follow another entity.
Return
a TaskHandle to control the tracking task
Parameters
plugin
the plugin to register the task
target
the entity to follow
speed
the movement speed (used if this entity is a Mob)
stopDistance
the distance to stop following