findPosForTrap

fun findPosForTrap(target: LivingEntity, isTargetLocked: Boolean): Vec3?

Searches for a position where a trap could be laid. Currently, that is the landing position of a jumping/falling player, or the current position of a player standing on the ground.

Return

position for the trap. null if the trap should not be placed.