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,front_text:{messages:['{"text":"Here lies","color":"red"}','{"selector":"@p[gamemode=!spectator]","color":"red"}','{"text":"They died","color":"red"}','[{"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,front_text:{messages:['{"text":"Here lies","color":"red"}','{"selector":"@p[gamemode=!spectator]","color":"red"}','{"text":"They died","color":"red"}','[{"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,front_text:{messages:['{"text":"Here lies","color":"red"}','{"selector":"@p[gamemode=!spectator]","color":"red"}','{"text":"They died","color":"red"}','[{"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,front_text:{messages:['{"text":"Here lies","color":"red"}','{"selector":"@p[gamemode=!spectator]","color":"red"}','{"text":"They died","color":"red"}','[{"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 setblock ~ ~ ~ diamond_block
execute at @s positioned ~ ~-2 ~ run kill @e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]



#{Color:"white",GlowingText:1b,front_text:{messages:['{"text":"Here lies","color":"red"}','{"selector":"@p[gamemode=!spectator]","color":"red"}','{"text":"They died","color":"red"}','[{"text":"Day ","color":"red"},{"score":{"name":"@e[type=marker,limit=1,sort=nearest,distance=..2,tag=SmallGraveKyu]","objective":"KyuDummy5"},"obfuscated":false}]']}}

