mojira.dev
MC-306298

Looting does not activate with trident projectiles or crossbow fireworks

In 1.20.5, Looting was made to work properly with bows and arrow-shooting-crossbows, should the enchantment be applied to them via commands (or an anvil in Creative Mode). However, trident projectiles and firework-shooting-crossbows still fail to activate the enchantment. For crossbow fireworks, this applies both to direct hit kills and indirect explosion kills.

Expected Result: Looting activates on kills dealt with trident projectiles and crossbow fireworks (both direct hit & explosion)

Observed Result: Looting fails to activate on kills dealt with trident projectiles and crossbow fireworks (both direct hit & explosion)

Attachments

Comments 2

Hi!
Thank you for your report!ย 

Could you please provide more details. As we have no repro of this issue.

  • Could you please record a video of the issue and upload it?

  • Can you list the commands you used to obtain the crossbow and trident?

Quick Links:ย 
๐Ÿ““โ€ฏIssue Guidelinesโ€ฏโ€“ ๐Ÿ’ฌโ€ฏMojang Supportโ€ฏโ€“ ๐Ÿ“งโ€ฏSuggestionsโ€ฏโ€“ ๐Ÿ“–โ€ฏMinecraft Wiki

This is because the Looting enchantment only works when the item is held in the mainhand.

After testing, Looting functions correctly when a trident or crossbow is held in the mainhand. Since tridents are thrown in Survival mode, Looting does not apply in that case โ€” I believe this is working as intended, as referenced in https://bugs.mojang.com/browse/MC/issues/MC-99063.

Looting works normally when holding a trident or crossbow in the main hand. You can refer to the video below:

SeaOfPixels

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved