aww, that'd be very useful
you can get your players coordinates, and you can get the direction they're looking, and you can get the distance between the eye point and the target
serverConnection.getcontrolob ject()
Don't know about the angle, but I'm positive it's possible
getFocusDistance()
then math
yea that
although realize that that alone doesn't get the brick, it just is another way to help figure out where to start looking for the brick.
If you want a brief explanation of how the code works:
1. Set groups to look through
2. Search through group to find ghostbricks
3. Identify nearest ghostbrick (keep in mind nearest =/= yours)
4. Use position of nearest ghostbrick to find nearest planted brick
5. gat