-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
EntityShootBowEvent doesn't work correctly #10640
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
Comments
power? you mean force? |
yes, I was a little mistaken |
So, this behavior looks like it WAI and that JDs are outdated, the server has an explicit * 3 to the "speed" (what gets referred to as force) in the path from some value which is capped to 1 based upon the use time |
Previously, the "Force" parameter was responsible for how much the bow was stretched, and now |
Is this intended then? Because the javadocs still says 1.0 but it actually return 3 for a full charge. |
The thing has been returning the speed for years, not the force. It's not exactly intended, but "that's been the implementation for so long now" unless upstream removed a division at some point. |
Expected behavior
getForce() should return 1.0 at maximum bow tension
Observed/Actual behavior
getForce() at maximum bow tension returns the value 3
Steps/models to reproduce
run method getForce() in EntityShootBowEvent
Plugin and Datapack List
example plugin for send getForce() to chat
Paper version
This server is running Paper version git-Paper-22 (MC: 1.20.5) (Implementing API version 1.20.5-R0.1-SNAPSHOT) (Git: 8f7ac62)
Other
power is limited to 3.0 and not 1.0
The text was updated successfully, but these errors were encountered: