#is there a way to detect when the player is looking foward and slightly to the left and right.
1 messages · Page 1 of 1 (latest)
You need to use ry and rym target selectors.
https://minecraft.fandom.com/wiki/Target_selectors#Selecting_targets_by_horizontal_rotation
Minecraft Wiki
Target selectors are used in commands to select players and entities arbitrarily, without needing to specify an exact player name or a UUID. One or more entities can be selected with a target selector variable, and targets can be filtered from the selection based on certain criteria using the target selector arguments.