614 B
614 B
radiation_explosion.js — pulseSphere() (satır 270)
← radiation_explosion.js · ← Master
function pulseSphere(c, world, cx, cy, cz, n)
{
if (n >= PULSE_COUNT) return;
drawSphere(world, cx, cy, cz, RADIATION_RADIUS, RADIATION_RADIUS);
// Sadece görsel — hasar radiationDamage() tarafından veriliyor (patlatan muaf)
world.playSound("minecraft:entity.generic.explode", cx, cy, cz, 2.0, 0.3);
c.scheduleScript(PULSE_INTERVAL, function (ctx) {
pulseSphere(ctx, ctx.getWorld(), cx, cy, cz, n + 1);
});
}