
# -> Add to lifetime
scoreboard players add @s OverlyRealistic.Animal.AnimalCorpseLifetime 20

# -> If lifetime < max then return
execute unless score @s OverlyRealistic.Animal.AnimalCorpseLifetime >= #or.setting.max_animal_corpse_lifetime OverlyRealistic.Settings.ArbitrarySetting run \
    return fail

# -> Drop despawn loot table
loot spawn ~ ~ ~ loot overly_realistic:animal_corpses/animal_corpse_general_despawn

# -> Remove corpse
tp @s ~ ~-9999 ~
kill @s
