0
\$\begingroup\$

I am making a mod that tells you your current speed on the screen. My current issue is how to get the speed.

My attempt consists of my knowledge that the LivingEntity class (from which the Player class extends) has a function called getSpeed(). All I need now is to find a public function that returns the current player object.

If there is a way to get the player's speed that's easier than this, please let me know. I am still fairly new to Minecraft modding, so I hope the answer doesn't seem too obvious.

\$\endgroup\$

0

You must log in to answer this question.

Browse other questions tagged .