#newstuff, to be sorted at end of update


execute at @s[scores={DayQ=8..12}] run execute as @e[tag=K,type=ghast,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.max_health,Base:14}]}
execute at @s[scores={DayQ=13..}] run execute as @e[tag=K,type=ghast,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.max_health,Base:19}]}
execute at @s[scores={DayQ=14..22}] run execute as @e[tag=K,type=blaze,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.max_health,Base:25}]}
execute at @s[scores={DayQ=23..}] run execute as @e[tag=K,type=blaze,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.max_health,Base:30}]}

#####DO HP REGEN


execute at @s[scores={DayQ=8..}] run effect give @e[tag=K,type=ghast,tag=!GKNameTag] instant_health 1 0 true
execute at @s[scores={DayQ=13..}] run effect give @e[tag=K,type=ghast,tag=!GKNameTag] minecraft:regeneration 3 2 true

execute at @s[scores={DayQ=14..22}] run effect give @e[tag=K,type=blaze,tag=!GKNameTag] minecraft:regeneration 3 2 true
execute at @s[scores={DayQ=23..}] run effect give @e[tag=K,type=blaze,tag=!GKNameTag] minecraft:regeneration 3 3 true

execute as @e[tag=K,tag=!GKNameTag,type=ghast] run tag @s add GKNameTag
execute as @e[tag=K,tag=!GKNameTag,type=blaze] run tag @s add GKNameTag

#end new stuff

