Started by
Knifej
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make double jump item. After testing the "code" i realized that you can jump endlessly. Is there anyway for fixing that?
Here is my code.
(And sorry for my bad england)
Edited by Knifej on Sat, 01/21/2023 - 15:50
I realized that this image doesnt show up so here is link. https://imgur.com/a/nI7fBgE
Try making a player variable that's 1 by default.
Make it so the player can't double jump when it's equal to 0.
When player double jumps, set the variable to 0, and when he touches the ground, set it to 1.
It worked. Thanks!