Download PlayerAbilityLib — Minecraft Mods — MetaMods

PlayerAbilityLib

Active

Downloads

20

Last update

4 months ago

Versions

1.20 — 1.21.6
Server
Fabric
Quilt
Libraries

PlayerAbilityLib

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 sink through the ground? Or perhaps ghost mode suddenly deprived you of the ability to fly for no apparent reason?

Compatibility issues with player abilities occur much more frequently than we'd like, and developers find them difficult to avoid. This library is designed for Quilt and Fabric mods that work with the PlayerAbilities class, allowing them to easily resolve the aforementioned problems.

Player Information

Players don't need to download this library separately — it's automatically included in the mods that use it.

If you find a mod causing compatibility issues with abilities (such as flight), you can politely recommend its author to use this API in places where they interact with PlayerAbilities.

Developer Information

Developers should add a dependency on this library through Gradle. Detailed instructions are available in the repository's README.

Usage examples can be found in the test mod:

  • Item that toggles an ability
  • Potion that grants an ability

credit for some API design elements goes to Chloe Dawn

Project members
Pyrofab

Pyrofab

Developer

PyrofabTheModsmith

PyrofabTheModsmith

Created: 22 Aug 2023

ID: 10689