44 lines
1.9 KiB
Markdown
44 lines
1.9 KiB
Markdown
# gojo_skills.js — cast_purple() (satır 463)
|
||
|
||
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
Parça 8/14 · [önceki](cast_purple-7.md) · [sonraki](cast_purple-9.md)
|
||
|
||
```javascript
|
||
if (hasTarget) {
|
||
target.setPosition(pPos.x + lookX * 6, pPos.y + eyeH + lookY * 6 - 0.5, pPos.z + lookZ * 6);
|
||
try {
|
||
var slowP = mappet.getPotion("slowness");
|
||
var weakP = mappet.getPotion("weakness");
|
||
if (slowP) target.applyPotion(slowP, 80, 10, false);
|
||
if (weakP) target.applyPotion(weakP, 80, 10, false);
|
||
} catch (e) {}
|
||
}
|
||
|
||
player.sendTitleDurations(2, 30, 10);
|
||
player.sendTitle("§5§lH O L L O W");
|
||
|
||
// =================================================================
|
||
// AŞAMA 1 — ŞARJ: Dev mavi & kırmızı sarmallar birleşir
|
||
// =================================================================
|
||
var t = 0;
|
||
function chargeLoop(ctx) {
|
||
|
||
if (t === 0) {
|
||
world.playSound("minecraft:entity.elder_guardian.curse", cx, cy, cz, VOL_AMB, 0.5);
|
||
world.playSound("minecraft:block.portal.trigger", cx, cy, cz, VOL_AMB, 0.7);
|
||
world.playSound("projectjjk:magic", cx, cy, cz, 4.0, 1.0);
|
||
world.playSound("projectjjk:clap", cx, cy, cz, 4.0, 1.0); // Mavi
|
||
world.playSound("projectjjk:clap2", cx, cy, cz, 4.0, 0.9); // Kırmızı
|
||
}
|
||
|
||
// ---------------- ATEŞLEME ----------------
|
||
if (t >= CHARGE_TICKS) {
|
||
player.sendTitleDurations(0, 25, 15);
|
||
player.sendTitle("§5§lH O L L O W");
|
||
player.sendSubtitle("§d§lP U R P L E");
|
||
|
||
world.playSound("minecraft:entity.lightning.thunder", cx, cy, cz, VOL_BIG, 0.7);
|
||
world.playSound("projectjjk:aec_purple_mix", cx, cy, cz, VOL_BIG, 1.0); // Hollow Purple
|
||
```
|