Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-203165

Respawning after death in the Nether and End doesn't trigger minecraft:changed_dimension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.3, 1.19.2
    • None
    • Windows 8.1, Vanilla Minecraft 1.16.3 running Java 1.8 using 2GB of RAM.
    • Confirmed
    • (Unassigned)

      Improved description by osfanbuff63
      The Bug:
      When you die in the Nether (or End), the minecraft:changed_dimension advancement trigger does not trigger.

      Steps to Reproduce:

      1. Download the data pack from the attachments (the .zip file)
      2. Create a new world with cheats on and run `/execute in minecraft:the_nether run tp ~ ~ ~` Note: You may need to teleport around a bit depending on your spawn
      3. Run `/execute in minecraft:overworld run tp ~ ~ ~` and notice the advancement triggered. (You will see a message in chat saying `You've changed dimension to Overworld!`
      4. Run the command from step 2, but afterwards this time kill yourself in some way.
      5. Notice the advancement did not trigger this time.

      Expected Behavior:
      The advancement would trigger as you spawned back in the Overworld.

      Actual Behavior:
      The advancement does not trigger.


      Original Description:

      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 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.

      In attachments I provide the dim_change.json advancement and reward function foo.mcfunction files.

        1. bar.mcfunction
          0.1 kB
        2. dim_change.json
          0.3 kB
        3. MC-203165.zip
          1 kB

            Unassigned Unassigned
            Kriomentos Kreeo
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: