Lv.1
—If there were a if, what would we be?—
签名:肝图ing
在 河道速建(代码分享) 中回复
for(let x=0;x<126;x++){; //x坐标的初始与结尾
for(let y=3;y<9;y++){; //y坐标的初始与结尾
for(let z=0;z<126;z++){; //z坐标的初始与结尾
let num = voxels.getVoxel(x,y,z); //获取当前方块id
if (num == 0){; //判断当前方块是否为air
voxels.setVoxel(x,y,z,"water"); //将当前方块转换为water
};
};
};
};2022-07-03T18:16:31 点赞:0