Files

49 lines
1.7 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 — runSpeed() (satır 686)
[← ezoic_radyasyon.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](runSpeed.md)
```javascript
spawnFx(ww, "dragonbreath", cx, cy + 0.1, cz, 2, 0.4, 0.0, 0.4, 0.02);
spawnFx(ww, "slime", cx, cy + 0.05, cz, 2, 0.3, 0.0, 0.3, 0.0);
// Hız hareket vektörüne göre arkaya kuyruk
var dx = cx - lastX, dz = cz - lastZ;
var ds = Math.sqrt(dx*dx + dz*dz);
if (ds > 0.05) {
for (var k = 1; k <= 5; k++) {
var f = k / 5;
var tx = cx - dx * f * 2;
var tz = cz - dz * f * 2;
spawnFx(ww, "endRod", tx, cy + 1.0, tz, 1, 0.0, 0.0, 0.0, 0.0);
spawnFx(ww, "happyVillager",tx, cy + 0.5, tz, 1, 0.1, 0.1, 0.1, 0.0);
}
// Hareket halkası
if (t % 4 === 0) {
for (var rp = 0; rp < 8; rp++) {
var ra = (rp / 8) * Math.PI * 2;
var rrr = 0.8;
spawnFx(ww, "happyVillager",
cx + Math.cos(ra) * rrr, cy + 0.05, cz + Math.sin(ra) * rrr,
1, 0.0, 0.0, 0.0, 0.0);
}
}
}
// Periyodik whoosh
if (t % 8 === 0) {
ww.playSound("minecraft:entity.minecart.riding", cx, cy, cz, 0.6, 2.0);
}
if (t % 16 === 0) {
ww.playSound("minecraft:entity.firework.blast", cx, cy, cz, 0.5, 2.0);
}
lastX = cx; lastZ = cz;
t++;
ctx.scheduleScript(1, speedLoop);
}
c.scheduleScript(1, speedLoop);
}
```