
# -> Add to lifetime
scoreboard players add @s OverlyRealistic.General.ArbitraryData 20

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

# -> Drop despawn loot table
loot spawn ~ ~ ~ loot overly_realistic:player_corpses/player_corpse_general_despawn

# -> Remove corpse
function overly_realistic:general/downing/player_corpse/player_corpse_remove
