1.9 KiB
1.9 KiB
gojo_skills.js — cast_domain() (satır 948)
if (t < expandDur) {
var R = maxR * (t / expandDur);
domeShell(w, "endRod", cx, cy, cz, R, 7, t * 0.25);
domeShell(w, "portal", cx, cy, cz, R, 6, -t * 0.20);
flatRing(w, "enchantmenttable", cx, pPos.y + 0.1, cz, R, 24, t * 0.3);
if (t % 3 === 0) {
w.playSound("minecraft:block.portal.ambient", cx, cy, cz, 2.0, 0.4 + (t / expandDur));
}
t++;
ctx.scheduleScript(1, domainLoop);
return;
}
var st = t - expandDur;
// ---- Bitiş: alan çöker ----
if (st >= sustain) {
w.playSound("minecraft:entity.enderdragon.growl", cx, cy, cz, 4.0, 0.6);
w.playSound("minecraft:entity.generic.explode", cx, cy, cz, 3.0, 0.5);
spawnFx(w, "hugeexplosion", cx, cy, cz, 6, 0, 0, 0, 0.1);
spawnFx(w, "largesmoke", cx, cy, cz, 160, 3, 3, 3, 0.1);
for (var r = 1; r <= 3; r++) {
shockRing(w, basis, cx, pPos.y + 0.1, cz, maxR * (r / 3), lanM, 6, r);
}
return;
}
// ---- Sürdürme fazı: sonsuz boşluk ----
var twist = st * 0.12;
domeShell(w, "endRod", cx, cy, cz, maxR, 7, twist);
if (st % 2 === 0) domeShell(w, "portal", cx, cy, cz, maxR, 6, -twist);
if (st % 3 === 0) domeShell(w, "enchantmenttable", cx, cy, cz, maxR * 0.96, 5, twist * 1.4);
// Zemin halkaları (nabız gibi)
flatRing(w, "endRod", cx, pPos.y + 0.05, cz, maxR, 28, twist);
flatRing(w, "portal", cx, pPos.y + 0.05, cz, maxR * 0.6, 18, -twist);