A Datapack for Minecraft to Select Entities via Raycast
/give @p minecraft:carrot_on_a_stick{Damage:3,Unbreakable:1b,display:{Name:"{\"text\":\"EntitiesControl\"}"}}
/function lucsoft:entitiescontrol.select
/execute as @e[scores={lsselectec=1}] at @s run