用户:
凚离29查看:19 回复:3 评论:19 创建时间:2021-03-15T16:50:59
求助啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
https://box3.codemao.cn/e/b1d4bd194ca9b480e74f
async_functionfor(let x=0;x<256;x++)for(let y=0;y<256;y++){
if(voxels.getVoxel(x,y,0)==voxels.id('air')){
voxels.setVoxel(x,y,0,'glass');/*第一道墙*/
}
if(voxels.getVoxel(0,y,x)==voxels.id('air')){
voxels.setVoxel(0,y,x,'glass');/*第二道墙*/
}
if(voxels.getVoxel(x,y,254)==voxels.id('air')){
voxels.setVoxel(x,y,254,'glass');/*第三道墙*/
}
if(voxels.getVoxel(254,y,x)==voxels.id('air')){
voxels.setVoxel(254,y,x,'glass');/*第四道墙*/
}
/*下面是封顶*/
if(voxels.getVoxel(x,63,y)==voxels.id('air')){
voxels.setVoxel(x,63,y,'glass');
}
await sleep(1);/*防止卡爆*/
}
/*这个是大地图的代码,输到控制台*/点赞0
评论
async_function(async()=>{
for(let x=0;x<256;x++)for(let y=0;y<256;y++){
if(voxels.getVoxel(x,y,0)==voxels.id('air')){
voxels.setVoxel(x,y,0,'glass');/*第一道墙*/
}
if(voxels.getVoxel(0,y,x)==voxels.id('air')){
voxels.setVoxel(0,y,x,'glass');/*第二道墙*/
}
if(voxels.getVoxel(x,y,254)==voxels.id('air')){
voxels.setVoxel(x,y,254,'glass');/*第三道墙*/
}
if(voxels.getVoxel(254,y,x)==voxels.id('air')){
voxels.setVoxel(254,y,x,'glass');/*第四道墙*/
}
/*下面是封顶*/
if(voxels.getVoxel(x,62,y)==voxels.id('air')){
voxels.setVoxel(x,62,y,'glass');
}
await sleep(1);/*防止卡爆*/
}
})()
/*这个是大地图的代码,输到控制台*/
/*这个没错误*/点赞0
评论