Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entity:isMoving() and entity:isFalling() to EntityAPI #206

Merged
merged 2 commits into from
May 21, 2024

Conversation

Avatcher
Copy link
Contributor

Note

This is an implementation of a feature suggested in the Discord server.

This PR adds the following functions to EntityAPI:

  • entity:isMoving() - Returns true if entity's velocity in any coordinate is not zero, aka when entity is moving in any direction.
  • entity:isFalling() - Returns true if entity's velocity in Y coordinate is below zero AND entity is not on the ground.

@UnlikePaladin UnlikePaladin merged commit 5b6cbb4 into FiguraMC:1.20 May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants