
Lv.1
就让这一切从头开始吧
签名:离线中
在 【❗️注意】未通过代码岛3.0编辑器申请的进 中回复
world.onPlayerJoin(({ entity }) => {
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity) {
return;
}
hitEntity.velocity.x += direction.x;
hitEntity.velocity.y += 0.5;
hitEntity.velocity.z += direction.z;
hitEntity.hurt(2 * Math.random() + 1, {
attacker: entity,
});
});
});
world.onDie(({ entity, attacker }) => {
if (attacker) {
world.say(attacker.player.name + ' killed ' + entity.player.name)
}
entity.player.forceRespawn();
});
undefined;
附:attacker=me
2020-05-01T20:33:04 点赞:0
在 [无字白书] 提示:Ctrl+A 中回复
............. ............... ........................................................................................... ................... ........... .................................................................................. ............................. 看到了吗,这就是黑(白)科技,用来当密文超级好,想知道做法的喵QQ:2979893134
2020-05-17T18:00:56 点赞:0
在 车竟然会飞! 中回复
林思琪贵
world.querySelectorAll('.车').forEach((e)=>{
e.onEntityContact(({entity,other})=>{
if(!other.isPlayer){return}
other.mesh=entity.mesh;
other.player.invisible = true;
other.meshOrientation = new Box3Quaternion(0, 1, 0, 0);
other.player.runSpeed = 0.75;
other.player.walkSpeed = 0.75;
other.player.scale =0.2;
other.player.jumpPower = 0;
other.player.canFly = ture;
world.querySelectorAll("player")[0].position.set(123,2,122);
other.player.cameraMode='fps'
console.log('setting camera mode:',entity.player.cameraMode);
});
});2020-06-04T15:02:03 点赞:0
在 怎么批量给别人金币? 中回复
发作品(空白、很多),别人购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购买购
2020-06-22T20:28:23 点赞:0