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

"hit_block" Enchantment component doesn't provide the Dimension context when calling "run_function"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 24w18a
    • None
    • Unconfirmed
    • (Unassigned)

      When an enchantment gets triggered by the "hit_block" component and then passes this trigger into a function, the function is always run from the overworld no matter what dimension the player is in. It does, however, set the x,y,z coordinates of the block the player interacted with, so if you hit a block in the nether, the function will be run from the corresponding block in the overworld.

       

      Steps to reproduce:

      • Load the provided datapack
      • Enchant an item with test:block_click_detection (it's set to work on Prismarine Shards for testing purposes)
      • Go to Survival mode and punch blocks (you don't have to actually break them for it to work)
      • Notice that flame particles appear directly above the block you punched.
      • Now try the same thing in the nether or end. The particles don't appear.

            Unassigned Unassigned
            stormconure Conure
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: