I'm making a datapack for a new series I'm in the works of creating

I need help removing hearts, I've set it so when a player starts they get the Life1 team. With that team you get additional hearts from this command effect give @a[tag=life1] minecraft:health_boost infinite 9 true . However if you fail a task you lose 4 hearts & thats the part I'm not sure about

I've done whats in the image foolishly without actually knowing what I was doing & now I can't give myself extra hearts(I just rejoined the world & it seems to be fixed idk)

Continue to help post