data merge block ~ ~1 ~ {auto:1b}
data merge block ~ ~ ~ {auto:0b}
scoreboard players set @e[name=DayQ] ReviveTimer 0
scoreboard players set @a[scores={KyuRevive=2}] KyuRevive 0
scoreboard players set @a[scores={KyuRevive=4}] KyuRevive 0
scoreboard players set @a[scores={KyuRevive=6}] KyuRevive 0
execute at @s run scoreboard players enable @p[tag=KyuRevivingT1] KyuRevive
execute at @s run scoreboard players enable @p[tag=KyuRevivingT2] KyuRevive
execute at @s run scoreboard players enable @p[tag=KyuRevivingT3] KyuRevive


execute at @s run tellraw @p[tag=KyuRevivingT1] ["",{"text":"","color":"blue"},{"selector":"@s","color":"blue"},{"text":" wishes to revive you with LOW HEALTH AND A CLEARED INVENTORY, EXCLUDING YOUR TOME. ","color":"blue"},{"text":"Click here to confirm you wish to proceed. ","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"/trigger KyuRevive set 2"}},{"text":"This will expire after 1 minute.","color":"red","bold":false,"italic":true}]
execute at @s run tellraw @p[tag=KyuRevivingT2] ["",{"text":"","color":"blue"},{"selector":"@s","color":"blue"},{"text":" wishes to revive you with LOW HEALTH AND A MOSTLY CLEARED INVENTORY, ONLY SPARING YOUR HOTBAR, EQUIPPED ARMOR ITEMS, AND TOME. ","color":"blue"},{"text":"Click here to confirm you wish to proceed. ","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"/trigger KyuRevive set 4"}},{"text":"This will expire after 1 minute.","color":"red","bold":false,"italic":true}]
execute at @s run tellraw @p[tag=KyuRevivingT3] ["",{"text":"","color":"blue"},{"selector":"@s","color":"blue"},{"text":" wishes to revive you with FULL HEALTH AND A FULL INVENTORY. ","color":"blue"},{"text":"Click here to confirm you wish to proceed. ","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"/trigger KyuRevive set 6"}},{"text":"This will expire after 1 minute.","color":"red","bold":false,"italic":true}]