As in the title. I was trying diffrent things with advancement trigger minecraft:changed_dimension and noticed it doesnt trigger when player gets teleported to spawn-point after death.
I've created example datapack with simple advancement checking for dimension change from The Nether to Overwold. Which rewards function foo:bar which simply displays message in chat saying "You've changed dimension to Overworld!" and to revokes said advancement.
First test was teleporting from The Nether to Overworld using:
// execute in minecraft:overworld run teleport @p ~ ~ ~
Which worked as expected and triggered the advancement.
Upon dying however, when player got teleported to his orginal spawn-point set in Overworld the trigger didn't fire.
Thank you for your report!
However, this report is Invalid.
Your game is modified.
If you can reproduce the issue in a vanilla game environment, please create a new ticket - this is a bug tracker for the game, and not a support website.
Any issues occurring from game modifications need to be taken up with the appropriate team, not Mojang Studios or the Bugtracker.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord