
# --> Spoil [decorated pot, bundles]

# -> Do spoilage
execute at @e[type=marker,tag=OverlyRealistic.Block.ContainerIsDecoratedPot] \
    if items block ~ ~ ~ contents #bundles \
    if data block ~ ~ ~ item.components."minecraft:bundle_contents"[{components:{"minecraft:max_damage":10000}}] run \
        data modify block ~ ~ ~ item.components."minecraft:bundle_contents"[].components."minecraft:damage" set value 10000

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