mojira.dev
MC-271622

Some enchantment effect components doesn't work on the Firework Rocket shot by Crossbow

The enchantment effect component "minecraft:projectile_spawned" and "minecraft:post_attack" doesn't work on the Firework Rocket shot by Crossbow.

Attachments

Comments 3

We do not have enough information to reproduce this issue.

Please provide steps to reproduce the issue, observed result and expected result. Attaching a video showing them is not enough.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

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

I'm running into this bug too.

For Minecraft 1.21 in a datapack if you make an enchantment with the effect component "minecraft:projectile_spawned" and the result being "run_function", the function will only run when the crossbow (because that's what the enchantment is set to be used for) fires and arrow. But the bug is that the function won't run when the crossbow shot a firework

I'm also having this problem for Minecraft 1.21.3

I have attached a datapack ("Bug_custom_enchant_crossbow") with custom enchant for crossbow which show the problem with multiple components:

  • Crossbow Damage (add 20 damage to attack)

  • Crossbow Hit Block (run function with "say" command to test)

  • Crossbow Projectile Spawned (same as above)

  • Crossbow Post Attack (same as above)

All those components work when firing an arrow but fail when using firework rocket (I can understand for the "damage" one since it's the explosion which deal damage but the other should work in theory).

Steps to reproduce:

  • Add the provided datapack to a world (or use a new crossbow enchantment with "damage", "projectile_spawned", "hit_block" or "post_attack" components)

  • Enchant a crossbow with one of the new enchantments

  • Fire an Arrow with crossbow

  • Fire a Firework Rocket with crossbow

Expected: Same behaviour with arrow and firework rocket
Result: Only arrows trigger the enchantment components

[media]

Minc

(Unassigned)

Unconfirmed

(Unassigned)

24w18a

Retrieved