onEvent('block.loot_tables', event => {
event.build('kubejs:lootblock_food', table => {		
table.pool(pool => {
    pool.rolls = 3
	Ingredient.of(['@pamhc2foodextended', '@pamhc2foodcore']).filter(Ingredient.of(['pamhc2foodextended:hotsauceitem', 'pamhc2foodextended:relishitem', 'pamhc2foodextended:ketchupitem', 'pamhc2foodextended:mustarditem', 'pamhc2foodextended:sesameoilitem', 'pamhc2foodextended:soysauceitem', 'pamhc2foodextended:blackpepperitem', 'pamhc2foodextended:saltandpepperitem', 'pamhc2foodextended:mushroomoilitem',
	'pamhc2foodcore:cookingoilitem', 'pamhc2foodcore:vinegaritem', 'pamhc2foodcore:freshwateritem', 'pamhc2foodcore:freshmilkitem', 'pamhc2foodcore:saltitem', 'pamhc2foodcore:flouritem', 'pamhc2foodcore:doughitem', 'pamhc2foodcore:batteritem', 'pamhc2foodcore:creamitem', 'pamhc2foodcore:butteritem', 'pamhc2foodcore:bakewareitem', 'pamhc2foodcore:cuttingboarditem', 'pamhc2foodcore:juiceritem', 'pamhc2foodcore:grinderitem', 'pamhc2foodcore:mixingbowlitem', 'pamhc2foodcore:potitem', 'pamhc2foodcore:rolleritem', 'pamhc2foodcore:saucepanitem', 'pamhc2foodcore:skilletitem', 'pamhc2foodcore:mayonaiseitem']).not()).stacks.forEach(stack => {
            pool.addEntry({
              "type": "minecraft:item",
			  "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 2.0,
                "type": "minecraft:uniform"
              }
            }
          ],
              "name": stack.id
            })
		})
	})
})
})