Started by
Pdubbs_
on
Topic category: Help with Minecraft modding (Java Edition)
I am having trouble figuring out how to make the game do something when the player has line of sight with an entity.
My code works when i am looking at the direction of the the entity and still works when looking at its direction through a solid block.
I need it to only work when looking through glass.
This should do the trick: https://file.io/kvoipJbiTbfh
Let me know if you need assistance.