Detect entity player is looking at

Started by Firedude123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect entity player is looking at

Hi, Im making a mod that needs to detect which entity the player is looking at. Is that possible?

Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com…
Tue, 03/18/2025 - 14:13

https://imgur.com/1gwt1KG

This trigger makes an entity take damage when looking at a player.
It seems possible to implement by applying this concept.