玩家能力库 (PlayerAbilityLib)
您的好伙伴,解决能力不兼容的问题
---
在您执行 /fly 命令时,是否曾经遇到飞行魅力突然停止工作的问题?或者是一个魔法喷气背包让旁观者穿过地面?又或者是一个幽灵模式,毫无原因地不允许您飞行?
MOD与玩家能力的不兼容性比我们想象的要常见得多,并且对于MOD开发者来说是非常难以避免的。这个库可以被任何与 _PlayerAbilities_ 类交互的Quilt或Fabric MOD使用,以轻松避免上述问题。
感谢Chloe Dawn为部分API设计提供的贡献
玩家信息
玩家不需要自己下载这个库,因为它旨在嵌入到分发的jar文件中。
如果您发现一个MOD导致了与玩家能力(例如飞行)相关的不兼容性,您可以(礼貌地)将作者链接到这个API,并询问他们是否可以在触及PlayerAbilities的任何地方使用它。
开发者信息
开发者应该使用gradle来设置对这个库的依赖关系。具体说明请参见[存储库的README]( 链接)。
您可以在[Test Mod]( 链接)中找到一些使用示例。
- [切换能力的物品]( 链接)
- [授予能力的药水]( 链接)
Version 1.16.0:
- Updated to 26.1
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.16.0/changelog.md "Changelog")
Version 1.15.0:
- Updated to MC 1.21.9 (thanks to Patbox)
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.15.0/changelog.md "Changelog")
Version 1.14.0:
Turns out we skipped a version number, hopefully nobody will notice
- Updated to MC 1.21.6 (thanks as always to Patbox)
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.14.0/changelog.md "Changelog")
Version 1.12.0:
- Updated to MC 1.21.5 (thanks again Patbox !)
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.13.0/changelog.md "Changelog")
Version 1.11.0:
- Updated to MC 1.21.3
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.11.0/changelog.md "Changelog")
Version 1.10.0:
- Updated to MC 1.21 (thanks peterv5!)
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.10.0/changelog.md "Changelog")
Version 1.9.0:
- Updated to MC 1.20.2
With thanks to Patbox for handling the past three updates
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.9.0/changelog.md "Changelog")
Version 1.8.0:
- Updated to MC 1.20
see full changelog [here](https://github.com/Ladysnake/PlayerAbilityLib/blob/1.8.0/changelog.md "Changelog")