用户:
SHEL深空无尽查看:2 回复:5 评论:2 创建时间:2021-06-26T16:59:34
如何让特定玩家穿戴上装备,其他玩家不受影响?
Architect_fyconst TEST_PLAYER = ['吉吉喵', '搬砖喵', '测试喵', '文档喵']
world.onPlayerJoin(({ entity }) => {
if (!TEST_PLAYER.includes(entity.player.name)) return; // 如果玩家名称不在列表里,则跳过后续脚本。
entity.player.a喵Wearable({
bodyPart: Box3BodyPart.HEAD,
mesh: 'mesh/三级盔.vb',
orientation: new Box3Quaternion(0,1,0,0).rotateY(-Math.PI/2),
offset: new Box3Vector3(0,0.4,0.1),
});
});
点赞0
评论