execute as @n[type=item,nbt={Item:{id:"minecraft:milk_bucket"}},distance=...5] on origin run advancement grant @s only survivalplus:adventure/food/sauced_meat
execute as @n[type=item,nbt={Item:{id:"minecraft:milk_bucket"}},distance=...5] run data modify entity @s Item.id set value "minecraft:bucket"
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{boldberry:tag}}}},tag=cooking] run function survivalplus:tools/food/addboldsauce
execute if entity @e[type=item,nbt={Item:{id:"minecraft:beetroot"}},tag=cooking] run function survivalplus:tools/food/addregensauce
execute if entity @e[type=item,nbt={Item:{id:"minecraft:glow_berries"}},tag=cooking] run function survivalplus:tools/food/addglowsauce
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{goldberry:tag}}}},tag=cooking] run function survivalplus:tools/food/addgoldsauce
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{coldberry:tag}}}},tag=cooking] run function survivalplus:tools/food/addcoldsauce
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{honeyberry:tag}}}},tag=cooking] run function survivalplus:tools/food/addhoneysauce
execute if entity @e[type=item,nbt={Item:{id:"minecraft:golden_apple"}},tag=cooking] run function survivalplus:tools/food/addgoldsauce
#execute if entity @e[type=item,nbt={Item:{id:"minecraft:resin"}},tag=cooking] run function survivalplus:tools/food/addresinsauce
function survivalplus:tools/food/cook_meat
function survivalplus:tools/food/cooked_meal