doEntityNearLookable

fun doEntityNearLookable(whoToLook: (Entity) -> Boolean = EffectiveEntityLookable.Look.TO_NEAR_PLAYER, lookDistance: Float = 5.0f)

Makes entities of this type turn to look at nearby targets.

Parameters

whoToLook

predicate choosing which entities to look at (default: nearest player)

lookDistance

max distance to look, in blocks