猫史档案馆


请问跑酷起点存档的代码怎么搞(500金币)

用户:SCX小皮迷SCX小皮迷查看:4 回复:6 评论:4 创建时间:2020-04-24T11:06:22


还有到达终点可以飞行的代码怎么搞,还有到达终点可以变大的代码怎么搞


回复

上一页1 页 / 共 1下一页
老葵老葵

……我不会(你信吗)

点赞0


评论


SCX小皮迷SCX小皮迷

信。

点赞0


评论


hecoshecos

world.onPlayerJoin(({entity})=>{
    entity.enableDamage=true;
})

world.onVoxelContact(({voxel,entity})=>{
    const c=voxels.id('S');//也可以是别的方块
    if(voxel===c){
        entity.player.directMessage('存档成功!');
        entity.player.spawnPoint.copy(entity.position);
    }
})

world.onEntityContact(({entity,other})=>{
    if(entity.isPlayer===false&&other.isPlayer===true){
        world.say(other.player.name+'到达终点!');
        other.player.canFly=true;//玩家可飞行
        other.player.scale=6.0;//玩家大小
    }
})

点赞0


评论


WaZCWaZC

我不会emotion_doge

点赞0


评论


WaZCWaZC

[滑稽]

点赞0


评论


Ken李Ken李

我不会

点赞0


评论