Files

29 lines
915 B
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.
# pirt2.js — runOrbit() (satır 81)
[← pirt2.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);
}
}
```