advancement revoke @s only minecraft:suhc/railgun
advancement grant @s only minecraft:suhc/railgun2
execute at @s run summon armor_stand ~ ~1 ~ {Tags:["KyuRailgun"],NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Silent:1b,Silent:1b}
execute at @s run tp @e[type=armor_stand,limit=1,sort=nearest,tag=KyuRailgun] ~ ~1 ~ ~ ~
kill @e[type=arrow,distance=..2]
execute at @e[name=DayQ] run data merge block 999990 120 999979 {auto:1b}
execute at @s run playsound minecraft:entity.wither.death ambient @a[distance=..100] ~ ~ ~ 10 1.8 1
#give @s emerald 1