30 lines
913 B
Markdown
30 lines
913 B
Markdown
# denem.js — runExplosionParticles() (satır 269)
|
||
|
||
[← denem.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);
|
||
}
|
||
```
|