#1
scoreboard players set @a[scores={level=..-2}] experience_max 50
execute as @a[scores={level=-2}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":"-1","exp":"100"}
execute as @a[scores={level=-1}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":0,"exp":"150"}
execute as @a[scores={level=0}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":1,"exp":"300"}
execute as @a[scores={level=1}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":2,"exp":"450"}
execute as @a[scores={level=2}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":3,"exp":"600"}
execute as @a[scores={level=3}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":4,"exp":"750"}
execute as @a[scores={level=4}] if score @s experience >= @s experience_max run function main:settings/levels/level_up {"lv":5,"exp":"0"}