猫史档案馆


【巅峰战绩】双春鼠计划<5局连胜>达成!

用户:WATNGWATNG查看:0 回复:2 评论:0 创建时间:2020-02-04T12:23:43


五连胜太简单了,赢得毫无压力。 训练师,快来通天塔排位赛记录下你的巅峰时刻吧!


回复

上一页1 页 / 共 1下一页
WATNGWATNG

a=input('输入姓名:') b=input('输入爱好:') c=input('输入未来目标:') print("姓名:") print(a) print("爱好:") print(b) print("未来的目标:") print(c)  

点赞0


评论


WATNGWATNG

// 开启飞行
world.onChat(({ entity:user, message }) => {
    if(message === '1111111111'){
        user.player.canFly = true;
        user.player.directMessage(`====开启飞行功能====`)
    }else if (message === '2') {
        user.player.canFly = false;
        user.player.directMessage(`====关闭飞行功能====`)
    }
});


// 玩家离开地图时,在控制台输出玩家的名字。
world.onPlayerLeave(({ entity }) => {
    c喵ole.log(`玩家 ${entity.player.name} 退出了地图。`);
});
/* 玩家进入地图时,向所有玩家发送消息 */
world.onPlayerJoin(({ entity }) => {
    world.say(`${entity.player.name}进入了地图`);
})

for (c喵t e of world.querySelectorAll('*')){
    if (e.id.startsWith('存档点')) {
        e.collides = true
        e.fixed = true
        e.meshScale = e.meshScale.scale(2)
        e.onEntityContact(({other}) => {
            if (other.isPlayer){
                if (e.position !== other.player.spawnSound) {
                    other.player.directMessage('到达新的存档点,下次将在此处复活')
                    other.player.spawnPoint = e.position
                }
            }
        })
    }
}



for (c喵t e of world.querySelectorAll('*')){
    if (e.id.startsWith('终点')) {
        e.collides = true
        e.fixed = true
        e.meshScale = e.meshScale.scale(2)
        e.onEntityContact(({other}) => {
            if (other.isPlayer){
                if (e.position !== other.player.spawnSound) {
                    other.player.directMessage('恭喜您通关!作者马上会出下一张地图,敬请期待!另外,别忘了关注我哦!')
                    other.player.spawnPoint = e.position
                }
            }
        })
    }
}

world.onPlayerJoin(({ entity }) => {
    entity.player.directMessage(`${entity.player.name}, 你好,本作是一个低难度中型跑酷,祝您游玩快乐`);
})


/* 如果实体碰到冰块,冰块会被打破 */
world.onVoxelContact(({ x, y, z, voxel }) => {
    c喵t voxelName = voxels.name(voxel);  // 将方块id转换名称
    if (voxelName === 'ice'){              // 如果方块名称是冰块
        voxels.setVoxel(x, y, z, 0);       // 将方块变成空气
    }
});

world.onPlayerJoin(({entity}) =>{
    entity.onFluidEnter(() =>{
        entity.position.copy(entity.player.spawnPoint)
        entity.position.y += 4
    })
})

点赞0


评论