用户:
神岛吉吉喵查看:47 回复:56 评论:47 创建时间:2021-04-28T19:43:13

皮肤虽然有限
但可穿戴装备是无限的!
学会这项技能
你就是岛上最靓的崽~
https://www.bilibili.com/video/BV1U5411g7Pr/
代码(这里用了 三级盔.vb 和喵 [精美].vb 举例)
world.onPlayerJoin(({entity}) => {
entity.player.addWearable({
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),
});
entity.player.addWearable({
bodyPart: Box3BodyPart.RIGHT_HAND,
mesh: 'mesh/喵 [精美].vb',
orientation: new Box3Quaternion(0,1,0,0).rotateY(Math.PI),
offset: new Box3Vector3(-0.05,-0.1,0.5),
scale: Box3Vector3 = new Box3Vector3(0.3, 0.3, 0.3),
});
});
开发API文档:https://docs.box3.codemao.cn/
加入代码岛3.0官方内测Q喵
下面的二维码会扫出来什么呢?( =•ω•= )m

BlackShadowworld.onPlayerJoin(({entity})=>{ entity.player.a喵Wearable({ bodyPart:Box3BodyPart.HEAD, mesh:'mesh/三级盔.vb', orientation:newBox3Quaternion(0,1,0,0).rotateY(-Math.PI/2), offset:newBox3Vector3(0,0.4,0.1), }); entity.player.a喵Wearable({ bodyPart:Box3BodyPart.RIGHT_HAND, mesh:'mesh/喵[精美].vb', orientation:newBox3Quaternion(0,1,0,0).rotateY(Math.PI), offset:newBox3Vector3(-0.05,-0.1,0.5), scale:Box3Vector3=newBox3Vector3(0.3,0.3,0.3), }); });
点赞0
评论
BlackShadowworld.onPlayerJoin(({entity})=>{ entity.player.a喵Wearable({ bodyPart:Box3BodyPart.HEAD, mesh:'mesh/三级盔.vb', orientation:newBox3Quaternion(0,1,0,0).rotateY(-Math.PI/2), offset:newBox3Vector3(0,0.4,0.1), }); entity.player.a喵Wearable({ bodyPart:Box3BodyPart.RIGHT_HAND, mesh:'mesh/喵[精美].vb', orientation:newBox3Quaternion(0,1,0,0).rotateY(Math.PI), offset:newBox3Vector3(-0.05,-0.1,0.5), scale:Box3Vector3=newBox3Vector3(0.3,0.3,0.3), }); });
点赞0
评论
AB骉Alobokhttps://web.kandian喵tpl/sharePage?kandianshare.html5.qq.com=1&_bid=4563&pgyid=2008&rowkey=61960d4aad9329bw&enc_u=+8Ok2j+MRIbGv7uNNE2npA==
点赞0
评论