
# -> Get scale
execute store result score #or.player_scale_get OverlyRealistic.General.ArbitraryData run \
    attribute @s scale get 1000

# -> If player is too small then return
execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches ..999 run \
    return fail

# -> Apply balances
execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 2400.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 3.8}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 2200.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 3.3}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 2000.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 3.0}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 1800.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 2.25}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 1600.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 1.6}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 1400.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 1.1}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 1200.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 0.7}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 1100.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 0.4}

execute if score #or.player_scale_get OverlyRealistic.General.ArbitraryData matches 1000.. run \
    return run \
        function overly_realistic:players/custom_data/scale_balance_apply {value: 0.2}
