跳到主要内容

🏷️ CustomNameplates

CraftCosmetics 可以联动 CustomNameplates,根据帽子模型的高度调整玩家铭牌位置。

主配置​

在 CraftCosmetics 的 config.yml 中配置:

hat:
update-nameplate-height: true
配置项说明
hat.update-nameplate-height是否联动 CustomNameplates 更新帽子铭牌高度,默认值为 true

开启后,CraftCosmetics 会读取帽子对应 CraftEngine 物品的 settings.hat_height,并将该高度用于 CustomNameplates 的帽子偏移。

CraftEngine 物品配置​

在帽子对应的 CraftEngine 物品中配置 settings.hat_height:

items:
craftcosmetics:forest_hat:
material: paper
settings:
hat_height: 0.5
data:
item-name: <!i><white>森林帽</white>
dyed_color: 255,255,255
model:
path: item/craftcosmetics/hat/forest_hat
tints:
- type: "minecraft:dye"
default: 255,255,255