execute if score @s MaxHealth matches 23 run attribute @s minecraft:generic.max_health base set 23
execute if score @s MaxHealth matches 24 run attribute @s minecraft:generic.max_health base set 24
execute if score @s MaxHealth matches 25 run attribute @s minecraft:generic.max_health base set 25