A feature on Bedrock edition missing on Java, the ability to disable the Elytra while flying !
Simply sneak while gliding with Elytra to disable the gliding and allow your character to fall.
Useful for using the mace for example.
Source code available on GitHub.
(I developped it for the 1.21 release using the 1.20.6 API, I assume it works also on this version, let me know if there's any bug on other version, or if I should modify it)