How to get entity's look angle? fov?

Started by dhani on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get entity's look angle? fov?

I'd like to synchronize the entity's attack with animation. 

so I canceled the default attack process and handled it in entity tick update.

I'm using an entity iterator but I'm facing an issue where the entity still gets targeted and takes damage even when it's behind a wall. 

Is there a way to detect the entity's look angle, or should I use ray tracing for this?"