PlayerAbilityLibForge
This is an adaptation of PyrofabTheModsmiths' PlayerAbilityLib project for Forge and NeoForge platforms.
Solving Compatibility Issues
Have you ever encountered a situation where a flight charm stopped working after using the /fly command? Or when a magic jetpack caused players in spectator mode to fall through the ground? Or perhaps a ghost mode suddenly deprived you of the ability to fly for no apparent reason?
Compatibility issues between mods related to character abilities occur much more often than we'd like, and mod developers find it very difficult to avoid them. This library is designed for any Forge mods that interact with the PlayerAbilities class, allowing them to easily solve the aforementioned problems.
For Developers
Developers can use Gradle to set up a dependency on this library. It's recommended to use the Modrinth Maven repository.
Several usage examples can be found in the test mod:
- Item that toggles an ability
- Potion that activates an ability
For Players
Players don't need to download this library separately, as it's intended to be embedded in distributed mod files.
If you find a mod that causes compatibility issues with game abilities (such as flight), you can politely recommend its author to use this API wherever they work with PlayerAbilities.