猫史档案馆


【岛3教程】怎么更换身体部位?

用户:不会浪就别玩亚索不会浪就别玩亚索查看:2 回复:3 评论:2 创建时间:2022-07-10T16:52:16


话不多说,上代码(大佬勿喷)

world.onPlayerJoin(({ entity }) => {
    entity.player.addWearable({
        bodyPart: Box3BodyPart.HEAD, //要更换的身体部位,HEAD是头,可更改 
        mesh: 'mesh/吉吉喵头部.vb', //要更换的模型名,可更改
        /*正确的位置*/
        orientation: new Box3Quaternion(0, 1, 0, 0).rotateY(-Math.PI / 1), 
        scale: new Box3Vector3(0.5, 0.5, 0.5), 
        offset: new Box3Vector3(0, 0.3, 0),
    });

    entity.player.skinInvisible.head = true; //隐藏头部
})


回复

上一页1 页 / 共 1下一页
嗨皮老六嗨皮老六

喵人士???🤔🤔🤔

点赞0


评论


人机47号人机47号

ddd

点赞0


评论


盗码师盗码师

center_image

点赞2


评论