How to Get the coordinate in my sight?

Between a ‘Player’ and a ‘Block’
The player makes an event with aim to the ‘Block’
but the player wants the location of a block just before it reaches the block.
if i was the player, how can I get?

To get coordinates in your site would be to use BlockRays

Your body text just confused me


Almost forgot. There is a great tutorial on how to use it on the sponge docs.

I solved this by other way
Location target = new Location (world, blockX+Math.signum(playerX-blockX), blockY+Math.signum(playerY-blockY), blockZ+Math.signum(playerZ-blockZ), playerYaw, playerPitch);

and then the target is that location