Started by
KabiKabi
on
Topic category: Help with Minecraft modding (Java Edition)
I already know how to get the block the player is looking at. I'm looking for some way or mathematical formula to get the exact position of the players crosshair, not the block position.
what do you mean?
Use blocks: X vector of entity/target; Y vector of entity/target; Z vector of entity/target.
You can set their radius using the commutative property of multiplication. Then add them relative to the player's position (EX: X + (Vx * radius), Y + (Vy * radius), Z + (Vz * radius))