Hi, I'm pretty new to scripting in general and I was trying to make a script where the player would be able to glide without an elytra, currently I have this
ItemEvents.rightClicked("adventurers_boots", event => {
if (!event.player.isFallFlying()) {
event.player.startFallFlying()
} else if (event.player.isFallFlying()) {
event.player.stopFallFlying()
}
})
Sorry I don't know how to do the fancy colored text thing but this is what I have rn, the issue is that I start to elytra glide but then immediately stop and my character just sorta jiggles back and forth trying to glide. When I have an elytra tho I can glide when I press right click. I think that the game thinks that because I don't have an elytra I can't glide so it stops me from doing so, is there a way I can make my character glide with kubejs or would I need to code a mod for that?