Accessories 是一款面向 NeoForge 和 Fabric 的数据驱动型配饰模组,强调在可能的情况下使用跨平台的通用 API。
该库的 API 风格借鉴了 Curios 和 Trinkets 的设计,在此向 TheIllusiveC4 和 emilyploszaj 致敬,感谢他们在 Minecraft 配饰模组开发方面所做的工作。
功能特性
包含鞘翅、图腾与旗帜支持
默认情况下,你可以将旗帜装备到头饰或披风(WIP)槽位中,以展示自定义旗帜。对于鞘翅或图腾,你需要在配置文件中启用相应选项,因为它们默认处于禁用状态。
模型转换 API
为开发者提供了完善的变换 API,用于渲染原生配饰,允许将其正确链接到实体模型的各个部分,从而实现对 Fresh Animations 等 EMF 资源包的完整支持。未来还计划支持其他渲染类模组,如 Figura。
管理已装备的配饰
通过访问其他驯服实体的能力,其他模组可以为宠物或坐骑添加配饰物品。此外,这对于服务器管理员非常有用,可以在无需直接使用管理命令的情况下管理其他玩家的配饰。只需按住 Shift 键并在任意实体上使用「Accessories Open Screen」即可打开界面(如果是玩家拥有的实体,则必须是其主人),或者以 OP 身份运行命令:
/accessories edit <target>
API 新增内容
以下是 Accessories 中实现的一些可能有助于你进行模组开发的 API 示例:
对基于 NBT 的配饰提供完整支持:Wiki
现有的 API 事件,包括猪灵中立物品、末影人面具、掠夺加成调整、幸运加成调整以及雪地行走能力:Wiki
用于模组专属配饰的唯一槽位 API:Wiki
Accessories is a Data-Driven Accessory mod for NeoForge and Fabric with emphasis on using a Common API for both platforms when possible.
The style for the library's API is based on the works of Curios and Trinkets with credit going to both TheIllusiveC4 and emilyploszaj for their work on Accessory mods for Minecraft.
Features
Elytra, Totem, and Banner Support Included
By default, you can equip banners in your head or cape(WIP) slot to show off a custom banner. For elytra, or totem, you will need to enable such within the config as its disabled by default.
Model Translation API
Included for developers is a proper transformation API used within rendering native Accessories, allowing proper linkage to a given entity model parts, which enables proper support for EMF Resourcepacks like Fresh Animations, and there are future plans to support other rendering mods like Figura.
Managing Equipped Accessories
The ability to access other tamed entities allows other mods to have accessory items for pets or mounts. Combined with it being useful for server owners to manage other players' accessories if needed, without the use of direct management commands. Just hold shift and use the 'Accessories Open Screen' on any entity (If owned, must be the owner) to bring up the screen, or run the command
/accessories edit <target>
if OPed.
API Additions
Here are some examples of the API implemented in Accessories that may assist you with your mod development:
Full Support for NBT-based Accessories: Wiki
Existing API Events for Piglin Neutral Items, Enderman Masks, Looting Adjustments, Fortune Adjustments, and Snow Walking Ability: Wiki
Unique Slot API for Mod Specific Accessories: Wiki
评论 0
登录后参与评分
还没有评论,来抢沙发吧