Files

45 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_red() (satır 338)
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
Parça 2/3 · [önceki](cast_red.md) · [sonraki](cast_red-3.md)
```javascript
w.playSound("minecraft:entity.generic.explode", startX + look.x * dist, startY + look.y * dist, startZ + look.z * dist, 1.4, 0.7);
shockRing(w, basis, startX + look.x * dist, startY + look.y * dist, startZ + look.z * dist, 3.0, ringM, 6, 0);
return;
}
var x = startX + look.x * dist;
var y = startY + look.y * dist;
var z = startZ + look.z * dist;
// Üç katmanlı kırmızı küre
w.displayMorph(redCore, 3, x, y, z, rt * 25, rt * 18, 96, null);
w.displayMorph(redGlow, 3, x, y, z, -rt * 22, rt * 15, 96, null);
// İz
for (var tr = 1; tr <= 4; tr++) {
var f = tr / 4;
var tx = x - look.x * speed * f;
var ty = y - look.y * speed * f;
var tz = z - look.z * speed * f;
spawnFx(w, "lava", tx, ty, tz, 6, 0.2, 0.2, 0.2, 0);
spawnFx(w, "flame", tx, ty, tz, 10, 0.3, 0.3, 0.3, 0.02);
spawnFx(w, "reddust", tx, ty, tz, 12, 0.4, 0.4, 0.4, 0);
}
spawnFx(w, "largesmoke", x, y, z, 10, 0.5, 0.5, 0.5, 0.05);
spawnFx(w, "flame", x, y, z, 30, 0.6, 0.6, 0.6, 0.1);
// Halka (her 2 tick)
if (rt % 2 === 0) shockRing(w, basis, x, y, z, 2.0, ringM, 4, rt * 0.4);
// Varlık taraması — REPEL
var entities = w.getEntities(x, y, z, killR);
for (var i = 0; i < entities.size(); i++) {
var e = entities.get(i);
if (e.isSame(caster)) continue;
if (!e.isLivingBase()) continue;
var eid = e.getUniqueId ? e.getUniqueId() : (e.getName() + i);
```