I can confirm this issue, i have similar behavior when i want to create a custom biome with a naturally spawned snow golem.
I wanted to add a snowy version of the mushroom biome, but i have pigs instead ^^"
Tested on Minecraft 1.20.1, fabric and vanilla.
@peashooter Np, i added it, but this is the version with the debug enabled (into .../data/tombstone/functions/tick.mcfunction at line 18)
@Dhranios +1
Error rectified ✔
@tryashtar Because I followed Cloud Wolf's advice on his video about using the LastDeathLocation tag (video from 1 year ago) ^^"
But i can't remember the exact reason ^^"