
export function onTick(event) {
    const { block } = event;
    if (!block) return;
    let randomInt = Math.floor(Math.random() * (18 - 8 + 1)) + 8;
    block.dimension.runCommand(`scriptevent lv_zo_debug:corrupttest ${randomInt} ${block.location.x} ${block.location.y} ${block.location.z}`);
    block.setType("minecraft:air");
}


const CorruptionMaker = {
    onTick: onTick
};

export default CorruptionMaker