tag @s[scores={attribute_point=1..}] add can_upgrade

tag @s[tag=can_upgrade,tag=human,scores={stat_rcv=5..}] remove can_upgrade
 
tellraw @s[tag=human,scores={stat_rcv=5..,attribute_point=1..}] {"rawtext":[{"text":"§cHumans reached the Recovery limit (5)!"}]}

tag @s[tag=can_upgrade,tag=dwarf,scores={stat_rcv=5..}] remove can_upgrade
 
tellraw @s[tag=dwarf,scores={stat_rcv=5..,attribute_point=1..}] {"rawtext":[{"text":"§cDwarves reached the Recovery limit (5)!"}]}

tag @s[tag=can_upgrade,scores={stat_rcv=10..}] remove can_upgrade

tellraw @s[scores={stat_rcv=10..,attribute_point=1..}] {"rawtext":[{"text":"§cMaximum Level Reached!"}]}

scoreboard players remove @s[tag=can_upgrade] attribute_point 1
scoreboard players add @s[tag=can_upgrade] stat_rcv 1
tellraw @s[tag=can_upgrade] {"rawtext":[{"text":"§aRecovery Increased!"}]}
playsound random.levelup @s[tag=can_upgrade]

tellraw @s[scores={attribute_point=..0}] {"rawtext":[{"text":"§cNot enough points!"}]}

tag @s[tag=can_upgrade] remove can_upgrade