配置说明
LyGemReload 的主配置是 config.yml,宝石放在 gem/ 目录,开孔器、拆卸工具和额外道具分别写在独立 yml 文件中。
配置文件
| 文件 / 目录 | 用途 |
|---|---|
config.yml | 属性槽位、属性插件、镶嵌限制、界面和消息。 |
gem/*.yml | 宝石配置。 |
开孔道具.yml | 装备开孔道具。 |
拆卸工具.yml | 宝石拆卸工具。 |
额外道具.yml | 镶嵌额外加成道具。 |
属性槽位
attribute-slot 用于声明哪些槽位会加载隐藏属性。
| 写法 | 说明 |
|---|---|
DragonCore#槽位名 | DragonCore 槽位。 |
GermPlugin#槽位名 | 萌芽槽位。 |
APInventory#分页ID#槽位ID | 梦星桐背包。 |
LyInventory#背包ID#类型 | 离渊背包。 |
LyInventoryReload#背包ID#类型 | 离渊背包重置版。 |
PXRPG#类型#背包ID#槽位 | PXRPG 槽位。 |
Origin#MainHand | 主手。 |
Origin#OffHand | 副手。 |
Origin#Helmet | 头盔。 |
Origin#ChestPlate | 胸甲。 |
Origin#Legging | 护腿。 |
Origin#Boots | 鞋子。 |
Minecraft#槽位ID | 原版背包槽位。 |
属性插件
attribute-plugin 可选 AttributePlus、SX-Attribute2、SX-Attribute3、AttributeSystem、ItemLoreOrigin。修改后建议重启服务器。
禁止镶嵌
| 节点 | 说明 |
|---|---|
the-item-exist-lore-prevent-inlay | 装备存在指定 Lore 时禁止镶嵌。 |
the-gem-exist-lore-prevent-inlay | 宝石存在指定 Lore 时禁止镶嵌。 |
placeholder-inlay-enable | 是否启用变量镶嵌数量限制。 |
placeholder-inlay | 按条件给玩家设置最大镶嵌数量。 |
placeholder-inlay 建议从高权限、高等级条件往下写,因为只会使用第一个满足的配置。
拆卸与交互模式
| 节点 | 说明 |
|---|---|
force-out-gem-enable | 是否点击即可拆卸宝石,不需要拆卸工具。 |
gui-auto-slot-mode-enable | 是否启用自动入槽位快捷模式。 |
快捷模式下,点击背包物品会自动进入装备、宝石或额外道具槽,点击界面槽位会自动回背包。
界面配置
gui 节点控制界面标题、填充物品、装备区域、宝石区域、额外道具区域、按钮和宝石展示 Lore。按钮 Lore 支持 {eco}、{chance} 等运行时内容。
消息
message 节点包含镶嵌成功、失败、金币不足、条件不足、拆卸成功、开孔达到上限等提示。可用 %lgr_message_消息节点% 读取消息文本。