## executing as the player that was killed
# bow_attacker is the killer
# $(out) is the distance
tag @s add hide_default_death_message

$execute if score @n[tag=bow_attacker] km_num matches 1 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was struck by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":"'s shiv from $(out) blocks away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 2 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" caught a bullet with their name on it from ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":", $(out) paces away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 3 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" got trolled on by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) miles away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 4 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was slain by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":"'s spear from $(out) feet away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 5 run return run tellraw @a[distance=..250] ["",{"selector":"@n[tag=bow_attacker]"},{"text":" 🏹 ","color":"white"},{"selector":"@s"},{"text":"from $(out) blocks","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 6 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was probed by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) light years away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 7 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was struck by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":"'s paper airplane from $(out) yards away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 8 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was hair-sprayed by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) blocks away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 9 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was sent $(out) years back in time by ","color":"white"},{"selector":"@n[tag=bow_attacker]"}]
$execute if score @n[tag=bow_attacker] km_num matches 10 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was kill ","color":"white"},{"text":"#","color":"aqua"},{"score":{"name":"@n[tag=bow_attacker]","objective":"total_kills"},"color":"aqua"},{"text":" for ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) blocks away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 11 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" iz sniped frum ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) blocks away uwu","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 12 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":"'s gyatt was mewed on by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) blocks","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 13 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was pierced by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":"'s longbow from $(out) paces away","color":"white"}]
$execute if score @n[tag=bow_attacker] km_num matches 14 run return run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was blown to shreds by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":"'s sawed off shotgun from $(out) feet away","color":"white"}]

$execute if score @n[tag=bow_attacker] km_num matches -1 run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" was shot by ","color":"white"},{"selector":"@n[tag=bow_attacker]"},{"text":" from $(out) blocks","color":"white"}]