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
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
[media]Result: Only arrows trigger the enchantment components