? SLM: Codex
本模组引入了一个法典系统(Codex system),增强了物品的展示与理解方式,直接在游戏内提供详细且有条理的信息。
它支持物品、武器、护甲和奇物(Curios)。
⚙️ 功能特性
每个受支持的物品都可以包含一个完整的法典条目,其中包含:
- ? 被动技能
- ⚔️ 主动技能
- ? 描述 / 背景故事
- ? 属性 / 数值
所有信息均通过简洁的选项卡界面呈现。
?️ 支持的类别
法典系统分为多个部分:
- ?️ 武器

- ?️ 护甲

- ? 奇物(Curios)

- ? 物品
每个类别都有其专门的布局和数据处理方式。
? 技能集成
- 支持固有技能集成
- 可以显示并重定向来自兼容系统(如 Epic Fight)的技能
- 提供与装备绑定的能力的统一视图
? 法典 JSON 指南
法典系统允许你使用 JSON 为物品、武器、护甲和奇物定义自定义条目。
你可以对任何可见字段使用翻译键(translation keys)或纯文本:
- 翻译键启用多语言支持
- 纯文本适用于快速定义或测试
? 通用字段(所有条目)
| 字段 | 描述 |
|---|---|
nameKey |
物品名称。支持翻译键或纯文本。 |
| nameColorKey | 为物品名称添加颜色,支持标准的 Minecraft 样式以及作为字符串的十六进制代码。 |
descriptionKey |
在法典中显示的主要描述。 |
overwritteTooltip |
如果为 true,则用此法典提示替换默认提示。 |
passiveSkills |
被动能力列表。 |
activeSkills |
主动能力列表。 |
被动技能或主动技能的条目不是必填项;如果你不包含它们或将其留空,它们将不会出现在法典中!但你的文件仍然可以正常工作。
⚙️ 技能格式(被动 & 主动)
passiveSkills 和 activeSkills 使用相同的结构(支持多个条目):

参数
| 字段 | 描述 |
|---|---|
title |
技能名称 |
description |
主要效果或解释 |
additional (可选) |
额外细节、条件或备注 |
? 更多详情(高级) | ⚔️ 武器/物品法典
路径:data/<item_namespaces>/renderable_codex/<item_name>.json

| 字段 | 描述 |
|---|---|
itemType |
定义类型。支持:weapon、item |
scale |
控制在法典中渲染的物品大小 |
translate |
调整显示中的位置 [x, y, z] |
rotation |
控制方向 |
? 旋转值
支持预定义的方向:
"up"(上)、"down"(下)、"left"(左)、"right"(右)
"up_left"(左上)、"up_right"(右上)
"down_left"(左下)、"down_right"(右下)
你也可以使用自定义的数值字符串,例如:
"4.15"
武器与物品图鉴的最终示例

? 更多详情(高级) | ?️ 护甲图鉴
data/<item_namespaces>/armor_codex/<item_name>.json

| 字段 | 描述 |
|---|---|
armorSlot |
护甲部件类型 |
支持的值:
head→ 头盔chest→ 胸甲legs→ 护腿feet→ 靴子
| 额外字段 | 描述 |
|---|---|
correctionFactor |
调整渲染对齐方式(微调值) |
护甲图鉴的最终示例

? Curios 字段
data/<item_namespaces>/curios_codex/<item_name>.json

| 字段 | 描述 |
|---|---|
curiosSlot |
装备该物品的槽位 |
Curios 图鉴的最终示例

?️ 用户界面
- 游戏内可访问的交互式图鉴面板
- 基于标签页的不同数据类型导航
- 可滚动区域以容纳大量信息
? SLM: Codex
This mod introduces a Codex system that enhances how items are displayed and understood, providing detailed and organized information directly in-game.
It supports Items, Weapons, Armor, and Curios.
⚙️ Features
Each supported item can include a complete Codex entry with:
- ? Passives
- ⚔️ Skills
- ? Description / Lore
- ? Attributes / Stats
All information is presented through a clean, tab-based interface.
?️ Supported Categories
The Codex system is divided into multiple sections:
- ?️ Weapons

- ?️ Armor

- ? Curios

- ? Items
Each category has its own specialized layout and data handling.
? Skill Integration
- Supports Innate Skills integration
- Can display and redirect skills from compatible systems (such as Epic Fight)
- Provides a unified view of abilities tied to equipment
? Codex JSON Guide
The Codex system allows you to define custom entries for items, weapons, armor, and curios using JSON.
You can use translation keys or raw text for any visible field:
- Translation keys enable multi-language support
- Raw text is useful for quick definitions or testing
? Common Fields (All Entries)
| Field | Description |
|---|---|
nameKey |
Item name. Supports translation keys or plain text. |
| nameColorKey | Adding a color to the item name supports standard Minecraft styles and hexadecimal as a string. |
descriptionKey |
Main description shown in the codex. |
overwritteTooltip |
If true, replaces the default tooltip with the codex one. |
passiveSkills |
List of passive abilities. |
activeSkills |
List of active abilities. |
The entries for Passive Skills or Active Skills are not mandatory; if you don't include them or leave them blank, they won't appear in the codex! And your file will still work.
⚙️ Skills Format (Passive & Active)
Both passiveSkills and activeSkills use the same structure (Supports multiple entries):

Parameters
| Field | Description |
|---|---|
title |
Skill name |
description |
Main effect or explanation |
additional (optional) |
Extra details, conditions, or notes |
? More Details (Advanced) | ⚔️ Weapon / Item Codex
Path: data/<item_namespaces>/renderable_codex/<item_name>.json

| Field | Description |
|---|---|
itemType |
Defines the type. Supported: weapon, item |
scale |
Controls the rendered size of the item in the codex |
translate |
Adjusts the position [x, y, z] in the display |
rotation |
Controls orientation |
? Rotation Values
Supports predefined directions:
"up", "down", "left", "right",
"up_left", "up_right",
"down_left", "down_right"
You can also use custom numeric values as strings, for example:
"4.15"
Final Example for Weapon & Item Codex

? More Details (Advanced) | ?️ Armor Codex
data/<item_namespaces>/armor_codex/<item_name>.json

| Field | Description |
|---|---|
armorSlot |
Armor piece type |
Supported values:
head→ Helmetchest→ Chestplatelegs→ Leggingsfeet→ Boots
| Extra Field | Description |
|---|---|
correctionFactor |
Adjusts rendering alignment (fine-tuning value) |
Final Example for Armor Codex

? Curios Fields
data/<item_namespaces>/curios_codex/<item_name>.json

| Field | Description |
|---|---|
curiosSlot |
Slot where the item is equipped |
Final Example for Curios Codex

?️ User Interface
- Interactive Codex panels accessible in-game
- Tab-based navigation for different data types
- Scrollable sections for large amounts of information
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SLM: Codex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Tick 和事件处理器经过优化,以减少开销和瓶颈。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧