Posted October 26, 201410 yr I couldn't find the code on how switching gamemode does this, but I'm using player.capabilities.allowFlying to give flight, however when the duration of the item runs out, the player doesn't drop if they're flying when it happens, so how do you do force them out of flight?
October 26, 201410 yr Player.capabilities.isFlying = false Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 26, 201410 yr Author That's what I already tried, it just leaves you floating until you double tap spacebar again.
October 26, 201410 yr you can do this player.capabilities.allowFlying = false; this will make the player drop down but this will also cause a conflict with other mod's flying abilities.
October 26, 201410 yr Author That doesn't work either. Edit: It turns out it was something unrelated getting in the way. I'll have to use a combination of both of those though.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.