Files

44 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_domain() (satır 948)
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
Parça 3/4 · [önceki](cast_domain-2.md) · [sonraki](cast_domain-4.md)
```javascript
// Yıldız tozu (boşluk hissi)
spawnFx(w, "endRod", cx, cy, cz, 6, maxR * 0.6, maxR * 0.5, maxR * 0.6, 0.0);
spawnFx(w, "witchMagic", cx, cy, cz, 8, maxR * 0.5, maxR * 0.5, maxR * 0.5, 0.0);
if (st % 20 === 0) {
w.playSound("minecraft:block.portal.ambient", cx, cy, cz, 1.6, 0.4);
w.playSound("minecraft:entity.elder_guardian.ambient_land", cx, cy, cz, 0.8, 0.5);
}
// ---- İçindeki canlıları "sonsuz bilgi" ile dondur ----
var entities = w.getEntities(cx, cy, cz, killR);
for (var i = 0; i < entities.size(); i++) {
var e = entities.get(i);
if (e.isSame(caster)) continue;
if (!e.isLivingBase()) continue;
// Dondur — hareketi sıfırla
e.setMotion(0, -0.04, 0);
e.setFallDistance(0);
// Duyusal aşırı yük
if (slow) e.applyPotion(slow, 30, 250, false);
if (blind) e.applyPotion(blind, 30, 1, false);
if (nausea) e.applyPotion(nausea, 30, 1, true);
if (weak) e.applyPotion(weak, 30, 250, false);
if (fatigue) e.applyPotion(fatigue, 30, 250, false);
// "Bilgi seli" partikülleri
var ep = e.getPosition();
spawnFx(w, "enchantmenttable", ep.x, ep.y + e.getHeight() * 0.5, ep.z, 12, 0.6, 0.9, 0.6, 1.2);
spawnFx(w, "portal", ep.x, ep.y + e.getHeight() * 0.5, ep.z, 8, 0.3, 0.6, 0.3, 0.2);
// Periyodik zihinsel hasar
if (st % 10 === 0) {
e.damage(4);
```