Files

910 B
Raw Permalink Blame History

Jade.js — restoreLayerStep() (satır 509)

← Jade.js · ← Master

Parça 2/2 · önceki

        if (layerRadius < 1) layerRadius = 1;

        // Siyah partiküller eşliğinde onarım
        spawnSpellParticle(world, p1, cx, currentY, cz, 40, layerRadius * 0.75, 0.2, layerRadius * 0.75, 0.08);
        spawnSpellParticle(world, p2, cx, currentY, cz, 20, layerRadius * 0.6, 0.2, layerRadius * 0.6, 0.05);
        if (Math.random() < 0.4) {
            spawnSpellParticle(world, p3, cx, currentY, cz, 15, layerRadius * 0.5, 0.1, layerRadius * 0.5, 0.01);
        }
        world.playSound("minecraft:block.chorus_flower.grow", cx, currentY, cz, 1.5, 1.4);
    }

    currentY++;
    c.setValue("currentRestoreY", currentY);
    c.scheduleScript("restoreLayerStep", SPELL_CONFIG.RESTORE_TICK_INTERVAL);
}