
# --> Spoil [decorated pot]

# -> Do spoilage
execute as @e[type=marker,tag=OverlyRealistic.Block.ContainerIsDecoratedPot] \
    at @s \
    if items block ~ ~ ~ contents #overly_realistic:consumables/all_physical_foods \
    unless items block ~ ~ ~ contents *[custom_data~{or_no_edit:1b}] run \
        function overly_realistic:general/food/food_spoilage/spoil_from_loop/spoil_6_b

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