So I'm making a thing similar to how endermen work, and it involves looking a player directly in the eye, as of now I only have it so that it detects the player is looking at the ender-like player. The issue is that it still triggers even if they aren't looking directly into the eyes.
Code:
<condition involving `target of event-player`>:
<effect>