const compostables = [
    {
        input: 'minecraft:tropical_fish',
        chance: 0.25
    },
    {
        input: 'minecraft:spider_eye',
        chance: 0.25
    },
    {
        input: 'minecraft:rotten_flesh',
        chance: 0.20
    },
    {
        input: 'minecraft:cod',
        chance: 0.20
    },
    {
        input: 'minecraft:salmon',
        chance: 0.20
    },
    {
        input: 'minecraft:pufferfish',
        chance: 0.20
    },
    {
        input: 'minecraft:string',
        chance: 0.10
    }
];

ServerEvents.compostableRecipes((event) => {
    compostables.forEach((compostable) => {
        event.add(compostable.input, compostable.chance);
    })

})