Started by
Disevro
on
Topic category: Help with Minecraft modding (Java Edition)
In this case, I'm trying to keep a player's velocity from becoming too high since the system using the velocity is multiplying the current player velocity by a number to produce a sort of dash. The current solution I've come up with so far limits the speed well, but also limits the direction of dashing to only 4 directions, creating odd moments where dashing appears to send you at an angle instead of the direction you wanted to dash.
https://drive.google.com/file/d/1SX67BgaBp6Wu0MFGKr7ZH9V5W8zvVpy8/view?usp=sharing
Image of my solution so far.
I don't have access to your image, so my best advice is to use the Pythagorean theorem to calculate speed. That's all I can give you for now.
My fault, updated accessibility settings on the image
https://drive.google.com/file/d/1SX67BgaBp6Wu0MFGKr7ZH9V5W8zvVpy8/view?…
I can't find X and Z velocity in MCreator.
X and Z velocities are located in the entity data section
This took way too long.
https://www.mediafire.com/file/t5uii7exdps1672/Screenshot_2024-02-01_183317.png/file
I hope this works for limiting speed. Besides the formula (big blob of math before the greater than sign), you can customize the numbers.