
Lv.1
在 叮叮叮叮叮……神奇岛民们,该交卷了! 中回复
https://shequ.codemao.cn/community/405334 帖子链接求吉吉喵皮肤
2021-10-07T17:51:01 点赞:0
在 叮叮叮叮叮……神奇岛民们,该交卷了! 中回复
https://shequ.codemao.cn/community/405334 帖子链接求吉吉喵给皮肤
2021-10-07T18:14:05 点赞:0
在 叮叮叮叮叮……神奇岛民们,该交卷了! 中回复
https://shequ.codemao.cn/community/405334 帖子链接求吉吉喵给皮肤
2021-10-08T16:03:37 点赞:0
在 求助!!! 谁会喵战的PVP 中回复
//一个简单的射击PvP
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;2021-10-11T20:32:08 点赞:0