Jump to content

Recommended Posts

Posted

Hey My Dear Friends,

Could you teach me how to GET THE REAL SPEED of entity or player(Such as the horse's speed when it running)?

I'm modding my first mod,so I don't know how to do that,I have searched for the Google and Youtube but there was no answer for the Minecraft1.17,so I couldn't really understand it.

If you can help me,I'm really thank a lot!!!

Posted
13 minutes ago, Luis_ST said:

you can get the Entity speed by LivingEntity#getSpeed, you also can look at LivingEntity#getFrictionInfluencedSpeed

Oh thank you bro.But I need the REAL-TIME speed ,not the entity's attribute.

Posted (edited)
1 hour ago, Luis_ST said:

then you need to calculate it manually from the current and the last Entity Position

ohh I know what should i do ,thanks alots!!!!!

Edited by xiaomi_lai
1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.