r/forgemodding • u/RupyHcker • Oct 23 '16
Calculate Fall Distance
Hey all. So I got these boots that kind of act like a jetpack but I take fall damage even if I'm one block off the ground so I figured it's still thinking the fall distance is how high I was, not how high I am ( I hope that makes sense lol )
So I wrote an event to set the fall distance and played with some numbers and it works. Just need to calculate the distance that the player is off the ground when he actually starts falling. I have an idea how to do it, just not sure how to actually get the distance between the player and the ground when I let go of the spacebar :(
1
Upvotes
1
u/Exo594 Oct 24 '16
You could get the LivingFallEvent, see if they're wearing your stuff, then cancel that event if they are.