Posted November 26, 20204 yr Is there a way to do the equivalent of `player.capabilities.allowFlying = true;` in the 1.16 version of Forge?
November 26, 20204 yr Look at PlayerEntity#abilities Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
November 27, 20204 yr Author @Beethoven92 holy crud thank you so much! I have been searching in every nook and cranny of these forums, but I couldnt for the life of me find where that went!
November 27, 20204 yr Author @Beethoven92 how would you set the flight to false once the player takes off the chestpiece that applied this? thanks so much for your help by the way! Edited November 27, 20204 yr by PandaTobi
November 27, 20204 yr You can subscribe to the LivingEquipmentChangeEvent and check for the the entity being the player, and the armor piece being your chest plate, then apply/remove the the ability to fly accordingly Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
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.