猫史档案馆


帮忙!!!喵战代码谁会

用户:哈利波特_哈利波特_查看:4 回复:3 评论:4 创建时间:2020-05-06T11:05:34


网址https://box3create.codemao.cn/games/8190783fd70725959f24

https://box3create.codemao.cn/games/eabdf856f03b17e54486

https://box3create.codemao.cn/games/e2248371aa428900cebf


回复

上一页1 页 / 共 1下一页
梦里觅深海梦里觅深海

怎么有3个

点赞0


评论


月战老兵月战老兵

我会

点赞0


评论


公子熙公子熙

world.onPlayerJoin(({ entity }) => {
    entity.enableDamage = true;
    entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
        if (button !== 'action0' || !hitEntity) {
            return;
        }
        if(hitEntity.isPlayer===true){
           hitEntity.velocity.y += 0.5;
        }
        hitEntity.hurt(20 * Math.random() + 5, {
            attacker: entity,
        });
        if(entity.player.name == "公子熙"){//这是外挂里面写谁的名字都可以
            hitEntity.hurt(0.1, {
                attacker: entity,
            });
        }
    });
});

world.onDie(({ entity, attacker }) => {
    if (attacker) {
        world.say(attacker.player.name + ' 重重一击了 ' + entity.player.name)
    }
    entity.player.forceRespawn();
});//pvp代码

点赞0


评论