Files

35 lines
1.2 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_radyasyon.js — runBeam() (satır 314)
[← ezoic_radyasyon.js](index.md) · [← Master](../../wiki.md)
Parça 4/4 · [önceki](runBeam-3.md)
```javascript
ww.displayMorph(coreMorph, 3, px, py, pz, step * 30, step * 30, 96, null);
ww.displayMorph(beamMorph, 3, px, py, pz, step * -45, step * 20, 96, null);
// Şok halkası her 2 step'te
if (step % 2 === 0) {
var rr = 1.5;
for (var rp = 0; rp < 8; rp++) {
var ra = (rp / 8) * Math.PI * 2 + step * 0.4;
var rca = Math.cos(ra), rsa = Math.sin(ra);
var rx = px + (rightX * rca + upX * rsa) * rr;
var ry = py + (upY * rsa) * rr;
var rz = pz + (rightZ * rca + upZ * rsa) * rr;
ww.displayMorph(ringMorph, 3, rx, ry, rz, ra * 180 / Math.PI, 0, 96, null);
spawnFx(ww, "endRod", rx, ry, rz, 1, 0.0, 0.0, 0.0, 0.0);
}
}
if (step % 3 === 0) {
ww.playSound("minecraft:entity.wither.shoot", px, py, pz, 1.5, 0.5);
}
step++;
ctx.scheduleScript(1, loop);
}
c.scheduleScript(1, loop);
}
```