Accessories 是一个面向 NeoForge 和 Fabric 的数据驱动配饰模组,尽可能强调在两个平台上使用统一的 API。
该库的 API 风格基于 Curios 和 Trinkets 的设计,并向 TheIllusiveC4 和 emilyploszaj 致敬,感谢他们在 Minecraft 配饰模组方面的贡献。
特性
包含鞘翅、图腾和旗帜支持
默认情况下,您可以在头部或披风(WIP)栏位装备旗帜以展示自定义旗帜。对于鞘翅或图腾,您需要在其配置中启用相关选项,因为它们默认处于禁用状态。
兼容层
由于 Trinket 和 Curios 等现有 API 被广泛使用,您可以安装 Accessories Compatibility Layer,使其在 Accessories 下正常工作,从而获得统一的使用体验。
模型转换 API
为开发者提供了专门的转换 API,用于渲染原生 Accessories,允许正确链接到实体模型的特定部位,从而实现对 Fresh Animations 等 EMF 资源包的正确支持。未来计划还支持其他渲染模组如 Figura。
管理已装备的饰品
能够访问其他驯服实体的功能,使得其他模组可以为宠物或坐骑提供饰品物品。结合其作为服务器管理员在无直接管理命令的情况下管理其他玩家饰品的实用性,只需按住 Shift 键并对任意实体使用“打开饰品界面”(如果是拥有者,则必须是所有者)来调出界面,或者如果具有 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.
Compatibility Layer
Due to existing API's like Trinket and Curios being predominantly used, you can install the Accessories Compatibility Layer to have them work under Accessories for a unified experience
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
登录后参与评分
还没有评论,来抢沙发吧