Started by
dhani
on
Topic category: Help with Minecraft modding (Java Edition)
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?"
this might be useful https://mcreator.net/forum/119678/how-can-i-detect-if-there-certain-type-block-between-entity-and-player
but if you actually just want to get the entity's look angle you can use,
Or yeah raytrace isn't a bad idea either