# gojo_purple.js — main() (satır 9) [← gojo_purple.js](index.md) · [← Master](../../wiki.md) Parça 7/14 · [önceki](main-6.md) · [sonraki](main-8.md) ```javascript // === ÇEKİRDEK PARLAMA (son %30) === if (t > chargeDuration * 0.7) { world.displayMorph(coreFlashMorph, 2, bx, by, bz, t * 50, t * 30, 96, null); } // === YILDIRIM ÇATIRTILARI (son %40) === if (t > chargeDuration * 0.6 && t % 4 === 0) { for (var lc = 0; lc < 3; lc++) { var la = Math.random() * Math.PI * 2; var ld = 1.5 + Math.random(); var lx = bx + Math.cos(la) * ld; var ly = by + (Math.random() - 0.5) * 2; var lz = bz + Math.sin(la) * ld; spawnFx("fireworksSpark", lx, ly, lz, 6, 0.05, 0.05, 0.05, 0.15); } world.playSound("minecraft:entity.firework.blast", bx, by, bz, 1.2, 2.0); } // === YÜKSELEN AMBIENT SES (lokal) === if (t % 8 === 0) { var pitchShift = 0.5 + progress * 1.5; world.playSound("minecraft:block.portal.ambient", bx, by, bz, VOL_AMB, pitchShift); player.playStaticSound("minecraft:block.beacon.ambient", 0.8, pitchShift); } t++; ctx.scheduleScript(1, chargeLoop); } // ================================================================= // AŞAMA 2: MOR IŞIN - üç katmanlı küre + uydular + şok halkaları // ================================================================= var pt = 0; var px = bx, py = by, pz = bz; var lastPx = bx, lastPy = by, lastPz = bz; function purpleLoop(ctx) { var distance = pt * flightSpeed; if (distance >= maxDistance) { ctx.scheduleScript(1, implosionLoop); return; ```