# hollow_purple.js — main() (satır 9) [← hollow_purple.js](index.md) · [← Master](../../wiki.md) Parça 13/13 · [önceki](main-12.md) ```javascript var pull = 2.5 * (1.0 - eDist / KILL_RADIUS); e.addMotion((edx/eDist)*pull, (edy/eDist)*pull + 0.1, (edz/eDist)*pull); e.setFallDistance(0); spawnFx("largeexplode", ePos.x, ePos.y + 1, ePos.z, 1, 0, 0, 0, 0.1); if (eDist <= CORE_RADIUS) e.kill(); else e.damage(DAMAGE_OUTER); } } // === HER 20 BLOKTA BİR DEV PATLAMA === if (dist >= nextExplodeDist) { trailExplosion(ctx, px, py, pz); nextExplodeDist += EXPLODE_EVERY; } // === İLERLEME SESİ === if (pt % 2 === 0) world.playSound("minecraft:entity.wither.shoot", px, py, pz, VOL_AMB * 1.5, 0.4); // === SON: trail bitti → fade + iyileşme === if (dist >= MAX_DIST) { // Hafif sönümlenme world.playSound("minecraft:entity.enderman.teleport", px, py, pz, VOL_BIG, 0.1); spawnFx("largesmoke", px, py, pz, 200, 4.0, 4.0, 4.0, 0.08); spawnFx("endRod", px, py, pz, 100, 2.0, 2.0, 2.0, 0.7); // 80 tick (4 sn) sonra dalga dalga geri yükle ctx.scheduleScript(80, function(c2) { restoreBatch(c2, 0); }); return; } pt++; ctx.scheduleScript(1, purpleLoop); } // ---------- BAŞLAT ---------- c.scheduleScript(1, chargeLoop); } ```