
attribute @s minecraft:scale modifier remove overly_realistic:random_spawn_modifier
$scoreboard players set @s OverlyRealistic.Player.Genetics.Scale $(v)
$data modify storage test_scale scale set from storage overly_realistic:player_attributes spawn_modifiers.scale[$(v)]

function overly_realistic:main/debug/stats/reset_scale_2 with storage test_scale

#function overly_realistic:main/debug/stats/reset_scale {v: 0}
