跳到主要内容

🎭 皮肤配置

普通物品皮肤​

普通物品皮肤通过 data.item_model 为目标物品设置模型,并使用 target-items.allow-regex 限制可应用的物品类型。

skins:
shell_axe_token:
token_item: craftskin:shell_axe_token
target-items:
allow-regex:
- "minecraft:.*_axe"
data:
item_name: <color:#ec989d>贝壳斧皮肤代币</color>
lore:
- ""
item_model: craftskin:shell_axe

配置项​

配置项说明
skins皮肤配置根节点
skins.<皮肤 ID>皮肤唯一 ID,加载后会规范化为小写
token_item该皮肤专用的代币物品 ID;留空时使用全局代币配置
target-items.allow-regex允许应用皮肤的目标物品正则列表
data.item_name皮肤代币名称,支持 MiniMessage
data.lore皮肤代币专用 Lore
data.item_model应用到目标物品的 item_model,必须是有效的命名空间 ID

盔甲皮肤​

盔甲皮肤除了设置 item_model 外,还可以通过 data.equipment_asset_id 配置装备外观资源。

skins:
topaz_chestplate_token:
token_item: default:topaz_chestplate_token
target-items:
allow-regex:
- "minecraft:.*_chestplate"
data:
item_name: <color:#FF8C00>黄玉胸甲皮肤代币</color>
lore:
- ""
item_model: default:topaz_chestplate
equipment_asset_id: default:topaz

配置项​

配置项说明
skins皮肤配置根节点
skins.<皮肤 ID>皮肤唯一 ID,加载后会规范化为小写
token_item该皮肤专用的代币物品 ID;留空时使用全局代币配置
target-items.allow-regex允许应用皮肤的目标物品正则列表
data.item_name皮肤代币名称,支持 MiniMessage
data.lore皮肤代币专用 Lore
data.item_model应用到目标物品的 item_model,必须是有效的命名空间 ID
data.equipment_asset_id装备外观资源 ID,用于设置护甲模型