Skip to main content

⚙️ 配置详情 (config.yml)

config.ymlMMOItemsGemslot 的核心,决定了宝石操作的成本、数据保护以及开孔槽位的具体类型。

📋 全量配置注释

# 语言设定 (zh_CN, en_US 等)
language: en_US

global:
# NBT 数据保护 (在开孔、镶嵌、拆卸时保留这些标签)
preserve-nbt-tags:
- "MMOitemsUpgrade" # 强化等级数据
- "MMOITEMS_PGEM_SLOTS" # 宝石槽位详细数据

# 宝石镶嵌成本
gem-socket:
disable-native-socketing: true # 强制使用 GUI
cost: 500 # 金币消耗
exp-cost: 100 # 经验点数消耗

# 开孔配置
perforation:
max-slots: 5 # 装备最大开孔数
cost: 1000 # 金币消耗
success-rates: # 阶梯成功率 (%)
- 80 # 第一孔
- 60 # 第二孔
- 40 # 第三孔

# 槽位类型定义 (必须匹配 MMOItems 宝石的 Color 标签)
gem-slot-types:
- name: "Red" # 匹配 MMOITEMS_GEM_COLOR: "Red"
display-name: "&c红色插槽"
material: RED_STAINED_GLASS_PANE
- name: "Sapphire"
display-name: "&9蓝宝石插槽"
material: BLUE_STAINED_GLASS_PANE

# 拆卸成本
gem-remover:
cost: 300
exp-cost: 50
enabled: true # 是否开启
consume: true # 是否消耗拆卸器道具

[!IMPORTANT] gem-slot-types 中的 name 字段必须与你在 MMOItems 中定义的宝石颜色标签(MMOITEMS_GEM_COLOR)完全一致,否则无法镶嵌成功。