mojira.dev
MC-271558

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

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.

Attachments

Comments 1

Would MC-271637 descibe your issue? Even though your report was made sooner, it looks like the other report has been confirmed first.

Conure512

(Unassigned)

Unconfirmed

(Unassigned)

24w18a

Retrieved