Click detection

Hi! Is there a way to detect the player click on an entity like a marker without using the talked_to_villager scoreboard?
Continue to help post