Files

916 B
Raw Permalink Blame History

pirt3.js — runExplosionParticles() (satır 396)

← pirt3.js · ← Master

Parça 2/2 · önceki

            var pz = cz + currentRadius * Math.sin(rotAngle);

            var rand = Math.random();
            if (rand < 0.50) {
                spawnSpellParticle(world, p1, px, py, pz, 1, 0, 0, 0, 0);
            } else if (rand < 0.80) {
                spawnSpellParticle(world, p2, px, py, pz, 1, 0, 0, 0, 0);
            } else {
                spawnSpellParticle(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);
}