Files

43 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_purple.js — main() (satır 9)
[← gojo_purple.js](index.md) · [← Master](../../wiki.md)
Parça 13/14 · [önceki](main-12.md) · [sonraki](main-14.md)
```javascript
world.playSound("minecraft:entity.enderdragon.ambient", px, py, pz, VOL_IMPACT, 0.3);
spawnFx("hugeexplosion", px, py, pz, 10, 0.0, 0.0, 0.0, 0.1);
spawnFx("largesmoke", px, py, pz, 250, 3.0, 3.0, 3.0, 0.1);
spawnFx("smoke", px, py, pz, 120, 2.0, 2.0, 2.0, 0.1);
spawnFx("largeexplode", px, py, pz, 5, 1.0, 1.0, 1.0, 0.0);
spawnFx("endRod", px, py, pz, 100, 1.0, 1.0, 1.0, 0.8);
return;
}
// Daralan halka (küre içeri çöker)
var collapse = 1 - (impStep / implosionTicks);
var ringR = 5.0 * collapse;
// Küre boyutu visual scaling representation
world.displayMorph(purpleMorph, 2, px, py, pz, impStep * 70, impStep * 50, 96, null);
// Halka noktaları gittikçe merkeze yaklaşır
for (var ip = 0; ip < 12; ip++) {
var ipa = (ip / 12) * Math.PI * 2 + impStep * 0.6;
var ica = Math.cos(ipa), isa = Math.sin(ipa);
var ipx = px + (rightX * ica + upX * isa) * ringR;
var ipy = py + (upY * isa) * ringR;
var ipz = pz + (rightZ * ica + upZ * isa) * ringR;
spawnFx("dragonbreath", ipx, ipy, ipz, 8, 0.1, 0.1, 0.1, 0.02);
spawnFx("portal", ipx, ipy, ipz, 6, 0.2, 0.2, 0.2, 0.3);
spawnFx("endRod", ipx, ipy, ipz, 1, 0.0, 0.0, 0.0, 0.0);
}
// Merkezde yoğunlaşma
spawnFx("dragonbreath", px, py, pz, 30, 0.5, 0.5, 0.5, 0.02);
spawnFx("witchMagic", px, py, pz, 15, 0.3, 0.3, 0.3, 0.05);
// Çöküş uğultusu (her tickte pitch düşer)
```