Files

48 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# gojo_skills.js — cast_purple() (satır 463)
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
Parça 11/14 · [önceki](cast_purple-10.md) · [sonraki](cast_purple-12.md)
```javascript
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("projectjjk:chime", 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;
py += lookY * FLIGHT_SPEED;
pz += lookZ * FLIGHT_SPEED;
var dist = pt * FLIGHT_SPEED;
// === BİNA BOYUTU ÇOK KATMANLI KÜRE ===
drawSphere(px, py, pz, ORB_RADIUS, morphPurpur, 3, pt * 0.25, pt * 30, pt * 20); // dış mor kabuk
```