
# --> Spoil [player, crafting slots, bundles]

# -> Do spoilage
execute as @a \
    if items entity @s player.crafting.* #bundles run \
        function overly_realistic:general/food/food_spoilage/spoil_from_loop/spoil_16_b

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