mojira.dev
MC-278674

hit_block enchantment effect does not work on arrows

The hit_block enchantment effect does not work on arrows, despite working on bows as normal.

Steps to Reproduce

  1. Install the attached data pack.

  2. Run the function hit_block:give.

  3. Fire the Explosion enchanted arrow with a normal, unenchanted bow. It will not explode upon impact.

  4. Fire a new (unenchanted) arrow with the Exbowsion enchanted bow. The arrow will explode upon impact.

Expected

The two enchantments are identical, so the arrow fired in step 3 should be exploding.

Attachments

Comments 4

Enchantment effects only trigger when the enchantment is applied to items the player is using or wearing, not random other items in their inventory that happen to be used as ammunition for the used item. This is not a bug.

If that was the case, effects like projectile_spawned shouldn't be working, but as it stands now, that effect works with both bows and arrows.

Confirming this, however it is possibly a feature request based off of Manos' previous comment.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

proppinbags

(Unassigned)

Confirmed

(Unassigned)

1.21.4

Retrieved