import { system, world } from "@minecraft/server";
import { allMountIDs } from "../DATA/Config";
export function runVanillaEntityEvent(log) {
    world.afterEvents.dataDrivenEntityTrigger.subscribe(({ entity, eventId }) => {
        if (!entity || !allMountIDs.includes(entity.typeId))
            return;
        if (eventId === "kicu_mmad:set_follow_true" || eventId === "kicu_mmad:set_follow_false") {
            const pitch = eventId === "kicu_mmad:set_follow_true" ? 1.0 : 0.5;
            system.run(() => {
                entity.runCommand(`playsound sound.kicu_mmad_follow_flute.sound @a[r=8] ~ ~ ~ 1.0 ${pitch} 1.0`);
            });
        }
    });
}

//# sourceMappingURL=../../../../../_KiCuMountsBPDebug/kicu/mmad/ESS/VanillaEntityEvent.js.map
