I'm trying to tap into the viewport to make a kind of scifi camera type deal. In short, point in a direction, use custom item, and it'll log all living entities in view.
I'm guessing custom item that raycasts onUse - but it seems silly to do it all myself since the game is doing it behind the scenes anyway when it checks if you looked at an enderman.
I'm thinking use item > mixin to whatever check happens moment to moment and grab entity data from there?
I'm still quite nooby so feel free to point me in a decent direction to research if I'm on the wrong track!