execute at @s positioned ~ ~-2 ~ run summon marker ~ ~ ~ {Tags:["SmallGraveKyu2"]}

execute at @s positioned ~ ~-2 ~ run scoreboard players operation @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu] KyuDummy5 = @e[limit=1,name=DayQ] DayQ2
execute at @s positioned ~ ~-2 ~ run scoreboard players add @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu] KyuDummy5 1
execute at @s positioned ~ ~-2 ~ run execute as @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu] run data merge block ~1 ~1 ~ {Color:"white",GlowingText:1b,Text1:'{"text":"Here lies","color":"red"}',Text2:'{"selector":"@p[gamemode=!spectator]","color":"red"}',Text3:'{"text":"They died","color":"red"}',Text4:'[{"text":"Day ","color":"red"},{"score":{"name":"@e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]","objective":"KyuDummy5"},"obfuscated":false}]'} 
execute at @s positioned ~ ~-2 ~ run execute as @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu] run data merge block ~-1 ~1 ~ {Color:"white",GlowingText:1b,Text1:'{"text":"Here lies","color":"red"}',Text2:'{"selector":"@p[gamemode=!spectator]","color":"red"}',Text3:'{"text":"They died","color":"red"}',Text4:'[{"text":"Day ","color":"red"},{"score":{"name":"@e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]","objective":"KyuDummy5"},"obfuscated":false}]'} 
execute at @s positioned ~ ~-2 ~ run execute as @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu] run data merge block ~ ~1 ~1 {Color:"white",GlowingText:1b,Text1:'{"text":"Here lies","color":"red"}',Text2:'{"selector":"@p[gamemode=!spectator]","color":"red"}',Text3:'{"text":"They died","color":"red"}',Text4:'[{"text":"Day ","color":"red"},{"score":{"name":"@e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]","objective":"KyuDummy5"},"obfuscated":false}]'} 
execute at @s positioned ~ ~-2 ~ run execute as @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu] run data merge block ~ ~1 ~-1 {Color:"white",GlowingText:1b,Text1:'{"text":"Here lies","color":"red"}',Text2:'{"selector":"@p[gamemode=!spectator]","color":"red"}',Text3:'{"text":"They died","color":"red"}',Text4:'[{"text":"Day ","color":"red"},{"score":{"name":"@e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]","objective":"KyuDummy5"},"obfuscated":false}]'} 
playsound minecraft:ambient.cave hostile @a[distance=..250] ~ ~ ~ 7 1.25 1


execute at @s positioned ~ ~-2 ~ run fill ~ ~-1 ~ ~ ~1 ~ air
execute at @s positioned ~ ~-2 ~ run kill @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]

