tag @e[name=DayQ,tag=!NoHardcore] add NoHardcoreTag
tag @e[name=DayQ,tag=NoHardcore] add YesHardcoreTag
tag @e[name=DayQ,tag=NoHardcore,tag=YesHardcoreTag] remove NoHardcore
tag @e[name=DayQ,tag=!NoHardcore,tag=NoHardcoreTag] add NoHardcore
execute as @s if entity @e[name=DayQ,type=armor_stand,tag=!NoHardcore] run tellraw @s ["",{"text":"Hardcore mode(one life) is now ","color":"yellow"},{"text":"ON. You have one life remaining.","color":"red"}]
execute as @s if entity @e[name=DayQ,type=armor_stand,tag=!NoHardcore] run execute in overworld run data merge block 999978 179 999975 {auto:1b}
execute as @s if entity @e[name=DayQ,type=armor_stand,tag=NoHardcore] run tellraw @s ["",{"text":"Hardcore mode(one life) is now ","color":"yellow"},{"text":"OFF. You may die as normal.","color":"green"}]
execute as @s if entity @e[name=DayQ,type=armor_stand,tag=NoHardcore] run execute in overworld run data merge block 999978 179 999975 {auto:0b}
scoreboard players set @a[tag=K] KyuDeath 0
tag @e[name=DayQ] remove YesHardcoreTag
tag @e[name=DayQ] remove NoHardcoreTag