-
Bug
-
Resolution: Unresolved
-
None
-
1.16.5, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19 Pre-release 1, 1.19, 1.19.2, 1.19.4, 23w14a, 24w34a
-
Confirmed
-
Loot tables
The Bug:
Item drops from fish entities aren't affected by the looting enchantment.
Just for clarification reasons, the affected entities are cod, salmon, tropical fish, and pufferfish.
Steps to Reproduce:
- Give yourself a sword with a high level of looting by using the command provided below.
/give @s minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}
- Summon a cod, salmon, tropical fish, or pufferfish.
- Kill it using the sword enchanted with looting and observe the loot that it drops upon death.
- Take note as to whether or not item drops from fish entities are affected by the looting enchantment.
Observed Behavior:
Item drops aren't affected by the looting enchantment.
Expected Behavior:
Item drops would be affected by the looting enchantment.
Code Analysis:
Code analysis by Avoma can be found below.
In the affected mob's json files (cod.json, salmon.json, tropical_fish.json, and pufferfish.json), we can see that the "minecraft:looting_enchant" function (the function that's responsible for modifying the count of how many items are returned when an entity is killed by an item with the looting enchantment) isn't present anywhere within the affected mob's loot table, therefore resulting in the drops of cod, salmon, tropical fish, and pufferfish not being affected by the looting enchantment.
- is duplicated by
-
MC-149297 Looting Enchantment does not work on any fish.
- Resolved
- relates to
-
MC-160006 Item drops from pandas aren't affected by the looting enchantment
- Open
-
MC-200707 Item drops from iron golems and cats aren't affected by the looting enchantment
- Reopened
-
MC-91074 Chicken can drop several chickens when killed with looting
- Resolved
-
MCPE-174550 Fish drops from fish entities aren't affected by the looting enchantment
- Open