用户:
西里斯_隆巴顿查看:1 回复:7 评论:1 创建时间:2023-05-28T09:48:26
———————————————防窥线———————————————————————————————————————————————————————————————————————————————————————————
先上代码
//旧地图代码:
let voxellist = [];
for (let x = 0;x < voxels.shape.x;x++){
for (let y = 0;y < voxels.shape.y;y++){
for (let z = 0;z < voxels.shape.z;z++){
voxellist.push(voxels.getVoxelId(x, y, z));
}
}
}
console.log(voxellist);
//新地图代码:
let voxellist = ["把旧地图的输出复制过来"];
var range = 0;
for (let x = 0;x < voxels.shape.x;x++){
for (let y = 0;y < voxels.shape.y;y++){
for (let z = 0;z < voxels.shape.z;z++){
voxels.setVoxelId(x, y, z, voxellist[range]);
range += 1;
}
}
}
使用方法寄几研究()()