Files

30 lines
913 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.
# alan2.js — runExplosionParticles() (satır 275)
[← alan2.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](runExplosionParticles.md)
```javascript
var pz = cz + currentRadius * Math.sin(rotAngle);
var rand = Math.random();
if (rand < 0.50) {
spawnAreaParticle(world, p1, px, py, pz, 1, 0, 0, 0, 0);
} else if (rand < 0.80) {
spawnAreaParticle(world, p2, px, py, pz, 1, 0, 0, 0, 0);
} else {
spawnAreaParticle(world, p3, px, py, pz, 1, 0, 0, 0, 0);
}
}
}
if (animTick % 3 === 0) {
world.playSound("minecraft:entity.illusion_illager.prepare_mirror", cx, cy, cz, 1.6, 0.7 + t * 0.5);
}
animTick++;
c.setValue("explosionAnimTick", animTick);
c.scheduleScript("runExplosionParticles", 1);
}
```