import { TicksPerSecond } from "@minecraft/server";
import { iceDragonArmorConfig } from "../DATA/ArmorConfig";
export function slowNearbyEntities(log, player) {
    try {
        const entities = player.dimension.getEntities({
            maxDistance: iceDragonArmorConfig.effectRange,
            location: player.location,
            excludeNames: [player.name],
        });
        for (const entity of entities) {
            entity.dimension.spawnParticle("kicu_mmad:freeze_effect", entity.location);
            entity.addEffect("slowness", iceDragonArmorConfig.effectDuration * TicksPerSecond, {
                showParticles: false,
                amplifier: iceDragonArmorConfig.effectAmplifier,
            });
        }
    }
    catch { }
}

//# sourceMappingURL=../../../../../_KiCuMountsBPDebug/kicu/mmad/A/IceDragonArmour.js.map
