execute if score @s MaxHealth matches 9 run attribute @s minecraft:generic.max_health base set 9
execute if score @s MaxHealth matches 10 run attribute @s minecraft:generic.max_health base set 10
execute if score @s MaxHealth matches 11 run attribute @s minecraft:generic.max_health base set 11
execute if score @s MaxHealth matches 12 run attribute @s minecraft:generic.max_health base set 12