跳到主要内容

🪄 手杖配置

cosmetics:
firefly_lantern:
type: cane
priority: 1000
set: forest
dyeable: true
permission: "craftcosmetics.cane.firefly_lantern"
item:
craftengine-item: "craftcosmetics:firefly_lantern"

配置项​

配置项说明状态
type: cane将时装注册为手杖必填
priority菜单显示排序优先级,数值越小越靠前;未填写时默认为 1000可选
set所属套装 ID可选
dyeable是否允许染色,默认为 false可选
permission手杖权限节点;未填写时默认为 craftcosmetics.cosmetic.<时装 ID>可选
item时装物品定义必填
locked-item设定时装在没有权限下显示的物品可选
allow-wardrobe-preview是否允许没有权限玩家在衣柜中试穿预览,默认为 true可选

item​

字段说明状态
craftengine-item使用 CraftEngine 物品可选
fallback-material物品解析失败后回退的物品,若不填写默认为 PAPER可选
item-model物品模型映射可选
custom-model-data自定义模型数据可选

locked-item​

字段说明状态
craftengine-item使用 CraftEngine 物品可选
material使用原版材质物品可选
item-model物品模型映射可选
custom-model-data自定义模型数据可选
name物品名称,支持 MiniMessage可选
lore物品提示框中的描述信息,支持 MiniMessage可选