1.7 KiB
1.7 KiB
ezoic_radyasyon.js — beginCharge() (satır 154)
← ezoic_radyasyon.js · ← Master
Parça 2/2 · önceki
var uz = cz + Math.sin(ua) * ur;
spawnFx(world, "endRod", ux, cy - 0.8 + prog * 2.5, uz, 1, 0.0, 0.4, 0.0, 0.05);
}
// Çekirdek (yarıdan sonra)
if (prog > 0.4) {
world.displayMorph(coreMorph, 2, cx, cy + 0.8, cz, t * 30, t * 30, 64, null);
spawnFx(world, "dragonbreath", cx, cy + 1, cz, 6, 0.3, 0.3, 0.3, 0.02);
}
// Şarj dolarken radyasyon halkası
if (t % 6 === 0 && prog > 0.3) {
var ringR = 1.5 + prog * 1.5;
for (var rp = 0; rp < 10; rp++) {
var ra = (rp / 10) * Math.PI * 2;
world.displayMorph(ringMorph, 3,
cx + Math.cos(ra) * ringR, cy + 0.1, cz + Math.sin(ra) * ringR,
ra * 180 / Math.PI, 0, 64, null);
}
}
// Geiger tıkırtı
if (t % 4 === 0) {
var pitch = 0.5 + prog * 1.2;
world.playSound("minecraft:block.note.hat", cx, cy, cz, 1.2, pitch);
world.playSound("minecraft:block.comparator.click", cx, cy, cz, 0.7, pitch);
}
if (t >= CHARGE_TICKS) {
world.playSound("minecraft:entity.lightning.thunder", cx, cy, cz, 2.5, 1.4);
world.playSound("minecraft:entity.wither.spawn", cx, cy, cz, 1.5, 1.2);
onComplete(ctx);
return;
}
t++;
ctx.scheduleScript(1, loop);
}
c.scheduleScript(1, loop);
}