# gojo_blue.js — main() (satır 1) [← gojo_blue.js](index.md) · [← Master](../../wiki.md) Parça 3/3 · [önceki](main-2.md) ```javascript // ========================= var r = 3; for (var x = -r; x <= r; x++) { for (var y = -r; y <= r; y++) { for (var z = -r; z <= r; z++) { var bx = Math.floor(cx + x); var by = Math.floor(cy + y); var bz = Math.floor(cz + z); var state = world.getBlock(bx, by, bz); if (!state) continue; var id = state.getBlockId(); if ( id === "minecraft:air" || id === "minecraft:bedrock" || id === "minecraft:barrier" ) continue; saveBlock(bx, by, bz, state); world.setBlock( mappet.createBlockState("minecraft:air", 0), bx, by, bz ); spawn("magicCrit", bx + 0.5, by + 0.5, bz + 0.5, 4); } } } // ========================= // 💥 END + RESTORE // ========================= if (step > maxDistance) { world.playSound("minecraft:entity.generic.explode", cx, cy, cz, 1.2, 0.7); spawn("hugeexplosion", cx, cy, cz, 8); restore(ctx); return; } step += speed; ctx._t++; ctx.scheduleScript(1, loop); } c.scheduleScript(1, loop); } ```