Jump to content

How to check how long a player has been falling for?


Recommended Posts

I thought this would be simple using PlayerEntity.isAirborne() but obviously that doesn't track how long you've been falling.

I'm doing all my calculations server side so I was wondering if there was a better way to do this than to have a tick event that checks the previous location for each player and storing it in a capability (I'm also not sure how performance friendly that would be), or maybe there's a convenience method for this but I'm confused by chasingPos etc.


Thanks so much for your help!

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

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