介绍
PlayerAbilityLib
Have you ever had an issue with a flight charm that stopped working as soon as you ran a /fly command ? Or a magic jetpack that made spectators sink through the ground ?
Or a ghost mode that didn’t let you fly for seemingly no reason ?
Mod incompatibilities with player abilities are way more common than we would like them to be, and are very difficult for mod developers to avoid. This library can be used by any Quilt or Fabric mod that interacts with the _PlayerAbilities_ class to avoid the aforementioned issues without difficulty.
credits to Chloe Dawn for some of the API design
Player information
Players should not have to download this library themselves, as it is intended to be embedded in distributed jar files.
If you find a mod that causes incompatibility related to player abilities (eg. flight), you can link the author (politely) to this API and ask if they could use it wherever they touch PlayerAbilities.
Developer information
Developers should use gradle to setup a dependency on this library. Instructions are given in the repository’s README.
You can find a couple usage examples in the Test Mod.
常见问题
PlayerAbilityLib 支持哪些 Minecraft 版本?
PlayerAbilityLib 支持 Minecraft Java 版 1.14–26.3,共 40 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
PlayerAbilityLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Pyrofab 的其他作品
查看全部 →Cardinal Components API
简单、模块化且极速的数据附加 API。
Effective
Fabric 客户端模组,通过粒子、视觉效果和音效改善 Minecraft 的氛围感
Satin API
一个帮助模组开发者使用光影的 Fabric 前置库
Impaled
A mod that adds new Tridents, Sincere Loyalty (Loyalty IV) and a few tweaks and fixes to all tridents
评论
登录后评论和评分