本项目适用于 Fabric 模组加载器。如需查看适用于 Forge 模组加载器的对应版本,请点击此处。
注意!Curios 已停止支持 1.17+ 版本的 Fabric。
请使用 Trinkets API 作为替代,我参与了其针对 1.17 版本的重写工作,它应包含 Curios 的所有必要功能,可作为合适的替代品。
概述
Curios 是一个灵活且可扩展的饰品/装备 API,供用户和开发者使用。其目的是为开发者提供便捷且兼容的方式添加额外的饰品/装备槽位,同时让用户能够根据自己的偏好配置这些槽位。默认情况下,Curios 除了提供一个物品栏 GUI 外不会添加任何内容。没有预设的槽位,仅包含两个物品,后者仅通过创造模式菜单可用,主要用作开发者在编码集成时的示例。
需要 Fabric API。
特性
- 通过中央库实现可扩展的装备槽位。新装备槽位可以通过标识符注册表轻松创建和管理。相同的标识符将合并在一起,以避免功能冗余并为潜在物品提供最大兼容性,而唯一标识符仍可用于在适当时标记特殊类型。
- 槽位按需生成。默认不包含任何槽位,所有槽位仅在需要时创建。这减少了存在一个或多个多余槽位但无合适物品放入的情况。
- 槽位完全可定制和操控。槽位可以拥有自定义背景、不同大小,甚至可以默认禁用或隐藏。那么玩家如何访问禁用的槽位呢?通过 API,开发者可以访问函数来启用/禁用玩家的槽位或添加/移除特定数量的给定类型槽位。
- 使用原版标签系统实现灵活的物品->饰品关系。潜在的饰品通过原版标签系统进行选择,这意味着将物品分类到饰品类型中就像在 data/curios/tags 文件夹中创建一个 .json 文件一样简单。只要物品在适当的文件中被标记,就可以将它们分类到任意多的饰品类型中,并且这些设置甚至可以完全覆盖。更多信息,请参阅原版标签系统。
- 与其他物品栏机制完全集成。修复与诅咒将与饰品槽位中装备的所有适用物品一起工作。还为开发者提供了各种次要功能,使其更简单地将现有物品或机制集成到饰品系统中。
- 可通过单个 GUI 访问。Curios 自带自己的 GUI,可从物品栏访问,显示玩家可用的所有槽位。这允许玩家在中心位置查看所有扩展的装备槽位,而无需访问不同的物品栏 GUI。但是,如果愿意,开发者仍可以为他们的模组专属槽位提供自己的 GUI。GUI 的默认键绑定是 'g'。

文档
This project is for the Fabric mod loader. To see its counterpart for the Forge mod loader, please go here.
Attention! Curios is discontinued for 1.17+ on Fabric.
Please use Trinkets API instead, which I contributed to rewriting for 1.17 and should contain all of the necessary features from Curios to serve as a suitable replacement.
Overview
Curios is a flexible and expandable accessory/equipment API for users and developers. The purpose is to provide functionality for developers to add extra accessory/equipment slots in a convenient and compatible manner, as well as to give users the ability to configure these slots to their preferences. By default, Curios does not add any content except for an inventory GUI. There are no slots and only two items, the latter only being available through the Creative menu and primarily serving as examples for developers to use when coding their own integration.
Requires Fabric API.
Features
- Expandable equipment slots through a central library. New equipment slots can be made and managed easily through an identifier registry. Identical identifiers will be merged together to avoid functional redundancies and provide maximum compatibility to potential items, while unique identifiers can still be used to mark special types when appropriate.
- Slots are only made on-demand. There are no slots included by default, all slots are created only as needed. This reduces instances where one or more superfluous slots are present without any suitable items to go into the slot.
- Slots are completely customizable and manipulable. Slots can have custom backgrounds, different sizes, and can even be disabled or hidden by default. But how would a player even access disabled slots? Through the API, developers can access functions to enable/disable a player's slots or add/remove a certain number of slots of a given type.
- Flexible item->curio relations using the vanilla tag system. Potential curios are selected through the vanilla tag system, which means that categorizing items into curio types is as easy as creating a .json file in the data/curios/tags folder. Items can be categorized into as many curio types as you want as long as they're tagged in the appropriate files, and these settings can even be overridden entirely. For more information, see the vanilla tag system.
- Complete integration with other inventory mechanics. Mending and Curses will work with all applicable items equipped in the curio slots. There are also various minor features for developers that make it simpler to integrate their current items or mechanics into the curio system.
- Accessible from a single GUI. Curios comes with its own GUI accessible from the inventory that shows all of the available slots to a player. This allows players to see all of the extended equipment slots in a central location without needing to access different inventory GUIs. However, developers can still provide their own GUIs for their mod-specific slots if they want. The default keybinding for the GUI is 'g'.

Documentation
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Curios API (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新日志
本项目的所有重大变更都将记录在此文件中。
本文件的格式基于 Keep a Changelog,且本项目遵循 语义化版本控制 规范。
[0.0.13] - 2021.03.09
修复
- 修复开发环境中的构建错误 #113
[0.0.12] - 2021.03.02
新增
- 新增 Origins - Elytrian 兼容支持 #109
[0.0.11] - 2021.01.14
新增
- 新增来自 Forge 分支的法语、韩语和巴西葡萄牙语本地化内容
更改
- 更新依赖项并适配 1.16.4 版本的构建
修复
- 防止奇物堆叠为空的情况
[0.0.10] - 2020.11.02
修复
- 修复与 CCA 的同步问题
[0.0.9] - 2020.10.29
更改
- 将 CCA 依赖项更新至 2.7.2
- 将 Fabric Loader 依赖项更新至 0.10.5
- 将 Fabric API 依赖项更新至 0.24.3
- 将 REI 依赖项更新至 5.7.0
[0.0.8] - 2020.10.05
修复
- 修复掉落规则未正确应用的问题 #76
[0.0.7] - 2020.09.13
更改
- 更新至 1.16.3
[0.0.6] - 2020.08.11
新增
- 新增用于奇物槽位的命令
更改
- 更新至 1.16.2
[0.5] - 2020.08.05
修复
- 修复使用 Mending(经验修补)奇物时的崩溃问题
[0.4] - 2020.08.04
新增
- 新增 REI 集成
修复
- 修复隐藏槽位未被 Curios GUI 正确处理的问题
- 修复滚动时渲染切换按钮不同步的问题
- 修复 Curios GUI 中配方书偏移量异常的问题 #62
- 修复缺少 ICuriosItemHandler#handleInvalidStacks 调用的问题 #61
[0.3] - 2020.07.29
新增
- 新增 Creative Curios 按钮 #60
修复
[0.2] - 2020.07.16
修复
- 修复因奇物槽位类型尺寸设置不当导致的客户端同步问题 #52
[0.1] - 2020.07.13
新增
- 首次 Beta 版本发布
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧