猫史档案馆


谁会攻击代码?????????????

用户:我叫啥我叫啥我叫啥我叫啥查看:0 回复:7 评论:0 创建时间:2020-05-28T22:14:08


谁会攻击代码啊,教我一下呗


回复

上一页1 页 / 共 1下一页
我叫啥我叫啥我叫啥我叫啥

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

点赞0


评论


我叫啥我叫啥我叫啥我叫啥

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

点赞0


评论


月亮不及你清冷i诈尸中丨月亮不及你清冷i诈尸中丨

???

点赞0


评论


月亮不及你清冷i诈尸中丨月亮不及你清冷i诈尸中丨

代码岛有教程吧

点赞1


评论


月战老兵月战老兵

 

 

点赞0


评论


LCG_剑少LCG_剑少

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(20 * Math.random() + 5, {
            attacker: entity,
        });
    });
});

world.onDie(({ entity, attacker }) => {
    if (attacker) {
        world.say(attacker.player.name + ' killed ' + entity.player.name)
    }
    entity.player.forceRespawn();
});

点赞0


评论


Albert钟Albert钟

(你是说攻击主机吗)https://shequ.codemao.cn/community/411227

点赞0


评论