
# -> Debug
data modify storage overly_realistic:player_general dead_player_data set from entity @s
#function overly_realistic:main/debug/death_inventories/data_store

# -> Store player inventory
data modify storage overly_realistic:player_general restorable_deaths.Inventory set from storage overly_realistic:player_general dead_player_data.Inventory

# -> Store player equipment
data modify storage overly_realistic:player_general restorable_deaths.equipment set value {}
data modify storage overly_realistic:player_general restorable_deaths.equipment set from storage overly_realistic:player_general dead_player_data.equipment

# -> Store player attributes
data modify storage overly_realistic:player_general restorable_deaths.attributes set from storage overly_realistic:player_general dead_player_data.attributes

# -> Store misc values
scoreboard players operation #or.restorable_death_stats_maxstamina OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Stats.MaxStamina

scoreboard players operation #or.restorable_death_genes_attackdamage OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.AttackDamage
scoreboard players operation #or.restorable_death_genes_attackspeed OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.AttackSpeed
scoreboard players operation #or.restorable_death_genes_blockbreakspeed OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.BlockBreakSpeed
scoreboard players operation #or.restorable_death_genes_entityblockinteractionrange OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.EntityBlockInteractionRange
scoreboard players operation #or.restorable_death_genes_maxhealth OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.MaxHealth
scoreboard players operation #or.restorable_death_genes_movementspeed OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.MovementSpeed
scoreboard players operation #or.restorable_death_genes_scale OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.Scale
scoreboard players operation #or.restorable_death_genes_sneakingspeed OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.Genetics.SneakingSpeed
