@minecraft/serverInterfacesEntityRaycastHitOn this pageInterface: EntityRaycastHit Contains information for entity raycast hit results. Properties distance distance: number Remarks Distance from ray origin to entity bounds. entity entity: Entity Remarks Entity that was hit.