913 B
913 B
denem.js — runExplosionParticles() (satır 269)
Parça 2/2 · önceki
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);
}