Files

47 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 6/14 · [önceki](cast_purple-5.md) · [sonraki](cast_purple-7.md)
```javascript
savedMap[key] = true;
world.setBlock(airState, bxi, byi, bzi);
}
} catch (e) {}
}
}
}
}
}
}
function restoreBatch(ctx, startIdx) {
var w2 = ctx.getWorld();
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 — projectjjk modundan
world.playSound("minecraft:entity.lightning.thunder", ex, ey, ez, VOL_BIG, 0.5);
world.playSound("projectjjk:deep_explosion", ex, ey, ez, VOL_BIG, 0.7);
world.playSound("projectjjk:aec_boom_01v1", ex, ey, ez, VOL_BIG, 1.0);
```