29 lines
913 B
Markdown
29 lines
913 B
Markdown
# Jade.js — runOrbit() (satır 93)
|
||
|
||
[← Jade.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
Parça 2/2 · [önceki](runOrbit.md)
|
||
|
||
```javascript
|
||
spawnSpellParticle(world, SPELL_CONFIG.PARTICLE_AURA_2, px2, py, pz2, 8, 0.28, 0.28, 0.28, 0.05);
|
||
spawnSpellParticle(world, SPELL_CONFIG.PARTICLE_AURA_3, px2, py, pz2, 5, 0.22, 0.22, 0.22, 0.02);
|
||
}
|
||
|
||
// Karanlık uğultu ses efekti
|
||
if (tick % 10 === 0) {
|
||
world.playSound("minecraft:entity.wither.ambient", pos.x, pos.y + 1.0, pos.z, 0.6, 0.5 + (tFactor * 0.4));
|
||
world.playSound("minecraft:block.portal.ambient", pos.x, pos.y + 1.0, pos.z, 0.8, 0.7 + (tFactor * 0.5));
|
||
}
|
||
|
||
tick++;
|
||
c.setValue("tick", tick);
|
||
|
||
if (tick < SPELL_CONFIG.ORBIT_TICKS) {
|
||
c.scheduleScript("runOrbit", 1);
|
||
} else {
|
||
// Şarj tamamlandı, fırlat!
|
||
fireProjectile(c);
|
||
}
|
||
}
|
||
```
|