execute as @e[predicate=survivalplus:item/cooked_meat] store result score @s itemcount run data get entity @s Item.count
execute as @e[type=item,nbt={Item:{id:"minecraft:honey_bottle"}}] store result score @s itemcount run data get entity @s Item.count
execute as @e[predicate=survivalplus:item/cooked_meat] at @s if score @s itemcount = @n[type=item,nbt={Item:{id:"minecraft:honey_bottle"}},distance=...5] itemcount run function survivalplus:tools/food/glazed