Expected:
The “minecraft:projectile_spawned” enchantment effect triggers on fireworks shot from crossbows, similar to arrows.
Actual:
The “minecraft:projectile_spawned” enchantment effect does not trigger on fireworks shot from crossbows; it only triggers on arrows.
To Reproduce:
Create a datapack with a custom enchantment that includes the “minecraft:projectile_spawned” enchantment effect. Make sure its “supported_items” includes “minecraft:crossbow”.
Leave and re-join the world with this datapack.
Enchant a crossbow with this custom enchantment.
Load the crossbow with a firework and shoot it.
Observe that the “minecraft:projectile_spawned” enchantment effect did not trigger.
Load the crossbow with an arrow and shoot it.
Observe that the “minecraft:projectile_spawned” enchantment effect triggered successfully.
This is already being tracked in MC-278319.