execute store success score bosszom itemcount run attribute @s minecraft:max_health modifier value get minecraft:leader_zombie_bonus
execute if score bosszom itemcount matches 1.. run attribute @s minecraft:max_health modifier remove minecraft:leader_zombie_bonus
#execute if score bosszom itemcount matches 1.. run tag @s add noreroll
#execute if score bosszom itemcount matches 1.. run tag @s add plussed
execute if score bosszom itemcount matches 1.. run tag @s add bosszom
#execute if score bosszom itemcount matches 1.. run data merge entity @s {CanBreakDoors:1b,CanPickUpLoot:1b,Health:30,attributes:[{id:"knockback_resistance",base:0.5f},{id:"movement_speed",base:0.3f},{id:"max_health",base:30f},{id:"attack_damage",base:7f},{id:"armor_toughness",base:2f},{id:"armor",base:6f}]}

scoreboard players reset bosszom

#execute as @e[type=#zombies,tag=!plussed] if data entity @s attributes[0].modifiers[0] run tag @s add noreroll
#execute as @e[type=#zombies,tag=!plussed] if data entity @s attributes[0].modifiers[0] run tag @s add plussed