Projectiles fired by non-player entities using the “minecraft:shooter” component do not apply the enchantments from the mainhand to the projectile being fired. This example covers two of the bow enchantments, but the same issue likely exists for the crossbow.
Steps to reproduce:
A. Bow Enchantments (Power, Flame, Punch)
Give yourself the example Bow “/give @s runecraft:bow”
Enchant the bow with Power and Flame “/enchant @s power 5”; “enchant @s flame 1”; “enchant @s punch 2”
Fire the custom Bow, and observe the arrow catch on fire, deal additional damage, and apply additional knockback compared to an unenchanted bow.
Summon a Skeleton (Equipment spawn has been updated to give the same runecraft:bow) “/summom skeleton”
Enchant the Skeleton’s weapon with the same enchantments “/enchant @e[type=skeleton] power 5”; “/enchant @e[type=skeleton] flame 1”; “/enchant @e[type=skeleton] punch 2”
Stand infront of the skeleton in survival and observe that the arrow is unaffected by the enchantments.
B. Crossbow Enchantments (Quick Charge, Multishot)
Give yourself the example Crossbow “/give @s runecraft:crossbow”
Enchant the Crossbow with Quick Charge 3 and Multishot 1 “/enchant @s quick_charge 3”; “enchant @s multishot1”
Charge and fire the custom Crossbow and observe that it charges faster, and shoots 3 projectiles.
Summon a Pillager (Equipment spawn has been updated to give the same runecraft:crossbow) “/summom pillager”
Enchant the Pillager’s weapon with the same enchantments “/enchant @s quick_charge 3”; “enchant @s multishot1”
Stand infront of the Pillager in survival and observe that the crossbow is not charged faster nor fires 3 projectiles.
Expected Result: The arrows fired by the non-player entities have the enchantments from the mainhand weapons of that entity applied to them.
Actual Result: The arrows exhibit no change whether the mainhand weapon is enchanted or not.