execute if score @s MaxHealth matches 4 run attribute @s minecraft:generic.max_health base set 4
execute if score @s MaxHealth matches 5 run attribute @s minecraft:generic.max_health base set 5
execute if score @s MaxHealth matches 6 run attribute @s minecraft:generic.max_health base set 6