
# --> Spoil [furnace, container.0]

# -> Do spoilage
execute as @e[type=marker,tag=OverlyRealistic.Block.ContainerIsFurnace] \
    at @s \
    if items block ~ ~ ~ container.0 #overly_realistic:consumables/all_physical_foods[custom_data~{or_is_food:1b}] \
    unless items block ~ ~ ~ container.0 *[custom_data~{or_no_edit:1b}] run \
        item modify block ~ ~ ~ container.0 overly_realistic:food/food_spoil

# -> Schedule next spoilage
schedule function overly_realistic:general/food/food_spoilage/spoil_from_loop/spoil_11_a 1t
