
# -> Spoil foods
execute if items entity @s player.crafting.0 #overly_realistic:consumables/all_physical_foods \
    unless items entity @s player.crafting.0 *[custom_data~{or_no_edit:1b}] run \
        item modify entity @s player.crafting.0 overly_realistic:food/food_spoil
execute if items entity @s player.crafting.1 #overly_realistic:consumables/all_physical_foods \
    unless items entity @s player.crafting.1 *[custom_data~{or_no_edit:1b}] run \
        item modify entity @s player.crafting.1 overly_realistic:food/food_spoil
execute if items entity @s player.crafting.2 #overly_realistic:consumables/all_physical_foods \
    unless items entity @s player.crafting.2 *[custom_data~{or_no_edit:1b}] run \
        item modify entity @s player.crafting.2 overly_realistic:food/food_spoil
execute if items entity @s player.crafting.3 #overly_realistic:consumables/all_physical_foods \
    unless items entity @s player.crafting.3 *[custom_data~{or_no_edit:1b}] run \
        item modify entity @s player.crafting.3 overly_realistic:food/food_spoil
