用户:
黑色中王牌查看:0 回复:2 评论:0 创建时间:2022-05-08T13:46:47
world.onPlayerJoin(({entity})=>{
entity.enableDamage=true;
entity.player.invisible=true; })
world.onPlayerJoin(({entity})=>{
entity.player.addWearable({
bodyPart:Box3BodyPart.HEAD,
mesh:'mesh/骷髅头.vb',
orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1),
scale:newBox3Vector3(1,1,1),
offset:newBox3Vector3(-0.02,0.3,0),
});
entity.player.addWearable({
bodyPart:Box3BodyPart.LEFT_LOWER_ARM,
mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(1,1,1,0).rotateX(Math.PI/1),
scale:newBox3Vector3(1,1,1),
offset:newBox3Vector3(-0.01,0.1,-0.05), });
entity.player.addWearable({
bodyPart:Box3BodyPart.RIGHT_LOWER_ARM,
mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(0,1,1.2,1).rotateX(Math.PI/1),
scale:newBox3Vector3(1,1,1),
offset:newBox3Vector3(-0.01,0.2,0), });
entity.player.addWearable({
bodyPart:Box3BodyPart.Box3BodyPart,
mesh:'mesh/骷髅身体.vb',
orientation:newBox3Quaternion(1,0,0,0).rotateX(Math.PI/1),
scale:newBox3Vector3(1,1,1),
offset:newBox3Vector3(0,0.4,0), });
entity.player.addWearable({
bodyPart:Box3BodyPart.LEFT_LOWER_LEG,
mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1),
scale:newBox3Vector3(1,1,1),
offset:newBox3Vector3(0,0.15,-0.2), });
entity.player.addWearable({
bodyPart:Box3BodyPart.RIGHT_LOWER_LEG,
mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1),
scale:newBox3Vector3(1,1,1),
offset:newBox3Vector3(0,0.15,-0.2), });
});