Files

41 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.
# hollow_purple.js — main() (satır 9)
[← hollow_purple.js](index.md) · [← Master](../../wiki.md)
Parça 6/13 · [önceki](main-5.md) · [sonraki](main-7.md)
```javascript
var end = Math.min(startIdx + 250, savedBlocks.length);
var pType = mappet.getParticleType("portal");
for (var ri = startIdx; ri < end; ri++) {
var rb = savedBlocks[ri];
try {
if (w2.getBlock(rb.x, rb.y, rb.z).getBlockId() === "minecraft:air") {
w2.setBlock(rb.s, rb.x, rb.y, rb.z);
if (pType && (ri % 2 === 0))
w2.spawnParticles(pType, true, rb.x+0.5, rb.y+0.5, rb.z+0.5, 2, 0.25, 0.25, 0.25, 0.03);
}
} catch (e) {}
}
if (end < savedBlocks.length) {
ctx.scheduleScript(2, function(c3) { restoreBatch(c3, end); });
} else {
ctx.getWorld().playSound("minecraft:block.beacon.activate", cx, cy, cz, VOL_AMB, 1.4);
}
}
// ---------- DEV TRAIL PATLAMASI (her 20 blokta) ----------
function trailExplosion(ctx, ex, ey, ez) {
// Sesler
world.playSound("minecraft:entity.lightning.thunder", ex, ey, ez, VOL_BIG, 0.5);
world.playSound("minecraft:entity.generic.explode", ex, ey, ez, VOL_BIG, 0.35);
world.playSound("minecraft:entity.enderdragon_fireball.explode", ex, ey, ez, VOL_BIG, 0.5);
world.playSound("gojo:hollow_purple", ex, ey, ez, 5.0, 1.0);
world.playSound("jujutsucraft:gokujo_murasaki", ex, ey, ez, 5.0, 1.0);
// Devasa görsel
drawSphere(ex, ey, ez, 9.0, morphGlow, 6, 0, 0, 0);
blastDebris(ctx, ex, ey, ez, 110, 2.4, 24);
shockwaveRing(ctx, ex, ey, ez, morphRing, 20.0, 14);
```