Files

45 lines
1.4 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.
# ezoic_viltrumite.js — doRage() (satır 591)
[← ezoic_viltrumite.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](doRage.md)
```javascript
ctx.getWorld().playSound("minecraft:block.beacon.deactivate", p2.x, p2.y, p2.z, 2.0, 1.0);
pp2.sendTitleDurations(0, 20, 5);
pp2.sendTitle("§7§lRage Bitti");
}
return;
}
var pp = ctx.getPlayer();
if (!pp) return;
var ww = ctx.getWorld();
var ppos = pp.getPosition();
var cx = ppos.x, cy = ppos.y + 1, cz = ppos.z;
// Alev aura
if (t % 2 === 0) {
for (var i = 0; i < 3; i++) {
var a = (i / 3) * Math.PI * 2 + t * 0.2;
spawnFx(ww, "flame", cx + Math.cos(a)*1.2, cy + Math.sin(t*0.1)*0.5, cz + Math.sin(a)*1.2, 1, 0, 0, 0, 0.01);
spawnFx(ww, "lava", cx + Math.cos(a+1)*0.8, cy - 0.5, cz + Math.sin(a+1)*0.8, 1, 0, 0, 0, 0);
}
}
// Kırmızı göz efekti
if (t % 5 === 0) {
spawnFx(ww, "reddust", cx, cy + 0.8, cz, 2, 0.1, 0.05, 0.1, 0);
}
// Rage ses
if (t % 30 === 0) {
ww.playSound("minecraft:entity.blaze.burn", cx, cy, cz, 0.5, 0.5);
}
t++;
ctx.scheduleScript(1, rageLoop);
}
c.scheduleScript(1, rageLoop);
}
```