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

The enchantment entity effect type "run_command" always runs the command in the overworld

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w19a
    • 24w18a
    • None
    • Community Consensus
    • Data Packs, Enchantments
    • Important
    • Platform

      The function run through the `run_command` entity effect type runs in the wrong dimension / always in the overworld.

      To reproduce, download the attached datapack and add it to a world. Then follow these steps.

      1. give yourself a pickaxe
      2. enchant this pickaxe with the test enchantment using /enchant @s test:test while holding it in your hand
      3. make sure you're in survival mode
      4. hit a nearby block. Observe how you get teleported to that block.
      5. go through a nether or end portal
      6. hit any block there
      7. observe how you're getting teleported to the corresponding block in the overworld instead.

      All the function does is this:

      tp @s ~ ~ ~ 

            slicedlime [Mojang] slicedlime
            Plagiatus Plagiatus
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: