Why is the macro incorrect?
Invalid macro variable name 'LastDeathLocation.pos'
Why is that invalid? The command /data get entity Grandpie LastDeathLocation.pos
does work. The command in the function is $title @a title {"text":"$(LastDeathLocation.pos)"}
and the function is called execute as @s run function youdied:new_collector with entity @s