用户:
Forzen_Seven查看:0 回复:1 评论:0 创建时间:2021-08-13T11:48:34
async function b(s){
await sleep(s * 1000);
const voxels = voxels.VoxelTypes();
world.onTick(()=>{
for(let i=0;i<100;i++){
const boomPosition = voxels.shape.mul(
{x:Math.random(),y:Math.random(),z:Math.random()});
voxels.setVoxel(boomPosition.x,boomPosition.y,boomPosition.z,
voxels[Math.floor(Math.random()*voxels.length)]);
}
})
}
/*调用时输入*/
b(定时秒数)