跳到主要内容

🗄️ 衣柜配置

default:
enable: true
distance: -1
permission: "craftcosmetics.wardrobe.default"
default-menu: "hat"

npc-location:
world: "world"
x: 0.0
y: 64.0
z: 0.0
yaw: 180.0
pitch: 0.0

viewer-location:
world: "world"
x: 0.0
y: 65.2
z: 4.0
yaw: 180.0
pitch: 0.0

leave-location:
world: "world"
x: 0.0
y: 64.0
z: 4.0
yaw: 180.0
pitch: 0.0

配置项​

配置项说明
enable是否启用该衣柜;设为 false 时不会注册,也无法通过指令进入
distance玩家进入衣柜时与 npc-location 的最大距离;-1 表示不限制距离
permission进入衣柜所需的权限;留空表示不需要权限
default-menu进入衣柜后默认打开的菜单,例如 hat
npc-location玩家模型假人的位置
viewer-location玩家进入衣柜后的观看位置
leave-location退出衣柜时使用的备用位置

三个位置都支持以下字段:

字段说明
world世界名称
x / y / z坐标
yaw水平朝向
pitch垂直朝向