execute if score count_creeper darkmobs matches 0.. run data merge entity @s {powered:1b}
execute if score count_creeper darkmobs matches 0.. run effect give @s minecraft:absorption 500 2
execute if score count_creeper darkmobs matches 0.. run effect give @s minecraft:resistance 500 1


tag @s add not_mob1
scoreboard players add count_creeper darkmobs 1
execute if score count_creeper darkmobs matches 1.. run scoreboard players set count_creeper darkmobs 0