Does someone knows, how to convert values from a vector into a distance? I mean, that you have to write a number of blocks and than, you will fly so much block in the air, and not more. it doesn' t work with player.setVelocity(new Vector(0, blocknumber, 0)); because that is much more...
Good luck with that. You will need some math. But here are some pointers. The yaw of the player location shows you which way a player looks in degrees. (If number is lower than 0 add 360.) Now you have to calculate the x and z coordinates by using the yaw and the distance.