
# --> Spoil [player, hotbar]

# -> Do spoilage
execute as @a \
    if items entity @s hotbar.* #overly_realistic:consumables/all_physical_foods run \
        function overly_realistic:general/food/food_spoilage/spoil_from_loop/spoil_17_b

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