1.9 KiB
1.9 KiB
hollow_purple.js — main() (satır 9)
Parça 12/15 · önceki · sonraki
drawSphere(cx, cy, cz, coreR, morphGlow, 2, t * 0.3, t * 30, t * 20);
spawnFx("dragonbreath", cx, cy, cz, 30, 0.4, 0.4, 0.4, 0.02);
}
// === ÇATIRTMA ===
if (t > CHARGE_TICKS * 0.5 && t % 3 === 0) {
for (var lc = 0; lc < 5; lc++) {
var la = Math.random() * Math.PI * 2;
var ld = 1.5 + Math.random() * 3.0;
spawnFx("fireworksSpark",
cx + Math.cos(la) * ld, cy + (Math.random() - 0.5) * 3.5, cz + Math.sin(la) * ld,
6, 0.05, 0.05, 0.05, 0.15);
}
world.playSound("minecraft:entity.firework.blast", cx, cy, cz, 1.2, 2.0);
}
// === AMBIENT ===
if (t % 8 === 0) {
var pitch = 0.5 + progress * 1.5;
world.playSound("minecraft:block.portal.ambient", cx, cy, cz, VOL_AMB, pitch);
player.playStaticSound("minecraft:block.beacon.ambient", 0.8, pitch);
}
t++;
ctx.scheduleScript(1, chargeLoop);
}
// =================================================================
// AŞAMA 2 — DEV MOR KÜRE: ilerler, deler, HER 20 BLOKTA PATLAR
// =================================================================
var pt = 0;
var px = cx, py = cy, pz = cz;
var lpx = cx, lpy = cy, lpz = cz;
var nextExplodeDist = EXPLODE_EVERY;
function purpleLoop(ctx) {
lpx = px; lpy = py; lpz = pz;
px += lookX * FLIGHT_SPEED;