Enchantments from items held in the main hand are applied to other items when entities are killed
The Bug:
Enchantments from items held in the main hand are applied to other items when entities are killed.
Steps to Reproduce:
- Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {NoAI:1b}/item replace entity @s weapon.offhand with minecraft:bow
/item replace entity @s weapon.mainhand with minecraft:diamond_sword[enchantments={levels:{"minecraft:looting":100}}] - Shoot and kill the husk using the bow.
- Look if the looting enchantment on the sword affected the number of items that the husk dropped.
- Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.
Observed Behavior:
Enchantments are applied to other items when entities are killed.
Expected Behavior:
Enchantments would not be applied to other items when entities are killed.
Potential Fix:
A potential fix by Chumbanotz can be found in this comment.
Linked Issues
is duplicated by9
relates to8
- Unresolved
[Mod] AvomaXristos Mpesiris
- 54
- 25
- Confirmed
Low
- Platform
- Combat Enchantments Loot tables
1.4.4 - 1.21.4
1.4.4 1.4.7 1.5 1.6.1 1.6.2 1.7.4 14w02c 14w03b 14w04a 14w04b 14w05a 14w05b 1.7.5 14w11b 1.7.10 14w32a 14w32b 14w32c 14w32d 14w33a 1.8 1.8.1-pre3 16w03a 1.10.2 16w32a 16w32b 16w33a 16w35a 17w06a 17w17b 1.12.2 1.13-pre1 1.14.4-pre5 1.14.4 1.15.2 20w16a 20w21a 1.16 1.16.2 1.16.3 1.16.4 20w51a 21w03a 1.16.5 21w05b 21w06a 21w07a 21w11a 21w15a 21w17a 1.17 1.17.1-pre1 1.17.1-pre2 1.17.1-pre3 1.17.1-rc1 1.17.1 21w37a 21w38a 21w39a 21w40a 21w42a 21w43a 1.18-rc3 1.18 1.18.1 22w05a 22w06a 1.18.2-rc1 1.18.2 22w14a 1.19 1.19.1-pre4 1.19.1 1.19.2 22w43a 1.19.3 1.19.4 1.20 1.20.1 23w33a 1.20.4 24w10a 24w18a 24w20a 1.21 1.21.1 1.21.2-pre3 1.21.3 1.21.4- 13w26a
Created Issue:
Infinite Looting Sword bug
Didn't find this one, so I'm reporting it.
Apparently, if you throw a splash potion of healing on a Skeleton(and I guess it works with other mobs as well) and then, just before the Skeleton dies, switch to your sword enchanted with looting, you will get extra loot anyway without the need to last hit with your sword, which means you never lose durability and you can keep getting extra loot from mobs.
I tried it with a bow enchanted with Flame but the mobs didn't drop any extra loot after they died from the fire.
Don't know if it works with other methods.
I tried it only with Minecraft 1.4.4 and on creative(no mods whatsoever), but it will probably happen with other modes and versions as well.
relates to
relates to
relates to
relates to
is duplicated by
is duplicated by
Infinite Looting Sword bugLooting gets applied to other weapons on kill
relates to
relates to
is duplicated by
Didn't find this one, so I'm reporting it.
Apparently, if you throw a splash potion of healing on a Skeleton(and I guess it works with other mobs as well) and then, just before the Skeleton dies, switch to your sword enchanted with looting, you will get extra loot anyway without the need to last hit with your sword, which means you never lose durability and you can keep getting extra loot from mobs.
I tried it with a bow enchanted with Flame but the mobs didn't drop any extra loot after they died from the fire.
Don't know if it works with other methods.
I tried it only with Minecraft 1.4.4 and on creative(no mods whatsoever), but it will probably happen with other modes and versions as well.
is duplicated by
Lootinggetsapplied to other weapons on killEnchantments get applied to other weapons on kill
is duplicated by
Didn't find this one, so I'm reporting it.Apparently, if you throw a splash potion of healing on a Skeleton(and I guess it works with other mobs as well) and then, just before the Skeleton dies, switch to your sword enchanted with looting, you will get extra loot anyway without the need to last hit with your sword, which means you never lose durability and you can keep getting extra loot from mobs.
I tried it with a bow enchanted with Flame but the mobs didn't drop any extra loot after they died from the fire.
Don't know if it works with other methods.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands:
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands:
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands
:/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Expected Behavior:
The expected behavior would be that enchantments would not get applied to other weapons on kill.
relates to
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Expected Behavior:
The expected behavior would be that enchantmentswould notget applied to other weapons on kill.The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Observed Behavior:
Enchantments get applied to other weapons on kill.
Expected Behavior:
Enchantments would not get applied to other weapons on kill.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Observed Behavior:
Enchantments get applied to other weapons on kill.
Expected Behavior:
Enchantments would not get applied to other weapons on kill.
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Observed Behavior:
Enchantments get applied to other weapons on kill.
Expected Behavior:
Enchantments would not get applied to other weapons on kill.
is duplicated by
is duplicated by
The Bug:
Enchantments get applied to other weapons on kill.
Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Observed Behavior:
Enchantments get applied to other weapons on kill.
Expected Behavior:
Enchantments would not get applied to other weapons on kill.
Potential Fix:
Potential fix by Chumbanotz can be found in this comment.
is duplicated by
relates to
relates to
relates to
The Bug:
Enchantments
get applied to other weapons onkill.Steps to Reproduce:
- Run the following commands.
/summon minecraft:husk ~ ~ ~ {NoAI:1b} /item replace entity @p weapon.offhand with minecraft:bow /item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}
- Shoot and kill the husk using your bow.
- →
Notice how the looting enchantment increases the number of drops you receive from killing the husk, despite yourself not using the sword to kill it.
Observed Behavior:
Enchantments
getapplied to otherweapons onkill.Expected Behavior:
Enchantments would not
getapplied to otherweapons onkill.Potential Fix:
Potential fix by Chumbanotz can be found in this comment.The Bug:
Enchantments from items held in the main hand are applied to other items when entities are killed.
Steps to Reproduce:
- Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {NoAI:1b}/item replace entity @p weapon.offhand with minecraft:bow/item replace entity @p weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}- Shoot and kill the husk using the bow.
- Look if the looting enchantment on the sword affected the number of items that the husk dropped.
- Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.
Observed Behavior:
Enchantments are applied to other items when entities are killed.
Expected Behavior:
Enchantments would not be applied to other items when entities are killed.
Potential Fix:
A potential fix by Chumbanotz can be found in this comment.
Enchantmentsget applied to other weapons onkillEnchantments from items held in the main hand are applied to other items when entities are killed
The Bug:
Enchantments from items held in the main hand are applied to other items when entities are killed.
Steps to Reproduce:
- Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {NoAI:1b}/item replace entity @pweapon.offhand with minecraft:bow/item replace entity @pweapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}- Shoot and kill the husk using the bow.
- Look if the looting enchantment on the sword affected the number of items that the husk dropped.
- Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.
Observed Behavior:
Enchantments are applied to other items when entities are killed.
Expected Behavior:
Enchantments would not be applied to other items when entities are killed.
Potential Fix:
A potential fix by Chumbanotz can be found in this comment.
The Bug:
Enchantments from items held in the main hand are applied to other items when entities are killed.
Steps to Reproduce:
- Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {NoAI:1b}/item replace entity @s weapon.offhand with minecraft:bow/item replace entity @s weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}- Shoot and kill the husk using the bow.
- Look if the looting enchantment on the sword affected the number of items that the husk dropped.
- Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.
Observed Behavior:
Enchantments are applied to other items when entities are killed.
Expected Behavior:
Enchantments would not be applied to other items when entities are killed.
Potential Fix:
A potential fix by Chumbanotz can be found in this comment.
The Bug:
Enchantments from items held in the main hand are applied to other items when entities are killed.
Steps to Reproduce:
- Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {NoAI:1b}/item replace entity @s weapon.offhand with minecraft:bow/item replace entity @s weapon.mainhand with minecraft:diamond_sword{Enchantments:[{id:"minecraft:looting",lvl:100}]}- Shoot and kill the husk using the bow.
- Look if the looting enchantment on the sword affected the number of items that the husk dropped.
- Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.
Observed Behavior:
Enchantments are applied to other items when entities are killed.
Expected Behavior:
Enchantments would not be applied to other items when entities are killed.
Potential Fix:
A potential fix by Chumbanotz can be found in this comment.
The Bug:
Enchantments from items held in the main hand are applied to other items when entities are killed.
Steps to Reproduce:
- Summon a husk, hold a bow in your offhand, and a sword enchanted with a high level of looting in your main hand, by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {NoAI:1b}/item replace entity @s weapon.offhand with minecraft:bow/item replace entity @s weapon.mainhand with minecraft:diamond_sword[enchantments={levels:{"minecraft:looting":100}}]- Shoot and kill the husk using the bow.
- Look if the looting enchantment on the sword affected the number of items that the husk dropped.
- Take note as to whether or not enchantments from items held in the main hand are applied to other items when entities are killed.
Observed Behavior:
Enchantments are applied to other items when entities are killed.
Expected Behavior:
Enchantments would not be applied to other items when entities are killed.
Potential Fix:
A potential fix by Chumbanotz can be found in this comment.
Related to MC-3304.
Essentially a duplicate of MC-3304.
Relates to MC-3304
Hi there!
This looks like a duplicate of MC-3304. (Although they may seem a bit different, reports that are exactly the same as this one have been marked as duplicates of that one)
Potentially a duplicate of MC-3304
NOT works as intended
This appears to be a duplicate of MC-3304, which hasn't yet been resolved. If you have any additional information to provide regarding this issue, feel free to comment on the parent ticket. If you feel that this issue is affecting you, feel free to vote for the duplicated ticket, to give Mojang a basic idea of how many people are impacted by the problem. Just to further inform you, this will not determine how quickly the bug gets handled or fixed.
Thank you for your report!
We're tracking this issue in MC-3304, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
This seems like a duplicate of MC-3304, rather than related.
Tested related scenarios:
- Looting applies if you kill mobs with a harming potion while holding a looting sword.
- It does not apply if you kill a mob with TNT while holding a looting sword.
- It does not apply if your tamed wolf kills a mob while you hold a looting sword.
Note that projectile looting is reported as a bug in Java Edition at MC-3304.
Duplicates MC-3304
Thank you for your report!
We're tracking this issue in MC-3304, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
This is not really related to MC-3304. In that case it's the player switching held items and getting enchantment effects based on what was held at the time of kill. For this issue it's the TNT kill counting to the mob that ignited the TNT, whether a player or another mob. In this case the TNT kill is just like a kill by a pet wolf or projectile, it counts to the owner.
I think this could qualify as a dupe of MC-3304. The "weapon" is a damage potion.
Yes, duplicate of MC-3304.
Duplicate of MC-3304.
Thank you for your report!
We're tracking this issue in MC-3304, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Not 100% sure if this duplicates MC-3304. If not, then it definitely relates to it.
I think this was fixed in 24w19a (the part about applying enchantments is still in the game, but covered under MC-3304). This could also be considered fixed in 24w18a, but riptide tridents did not work correctly in that version. In the "Affected Versions", 24w19a and 24w20a are listed; I cannot reproduce the bug in these versions, nor in any version after them.

It also works if a mob is killed by a normal arrow (no flame effect) and you switch to a looting sword fast enough, and even works on deflected ghast fireballs (you can even deflect the fireball directly with the sword). It happens because the game checks the item you are holding at the time the mob dies, rather thank the item you killed the mob with.
http://www.youtube.com/watch?v=AKt747JzyBE
Correct, Chalmes, this is where I saw the bug from!
I didn't see anyone reporting it, so I reported it!
I was pretty sure that 1.4.6 Pre-Release would come either way!
The sooner these bugs are fixed the sooner I will get to play with my mods!
It doesn't matter if we have to get to Minecraft 1.4.10+ for that, as long as we get there faster!
Well, it is very useful, even though it is a bug.
This is a bug that people can take advantage of, so it should be set to private.
This bug isn't a security issue. Also, it's already in videos - setting it to private would just lead to duplicate reports.
@Gerrard Lukacs: Actually, you're right. YouTubers get a lot more hits than the bug tracker, too.
Tested it today as I was going through my upvoted bugs and was unable to reproduce. Anybody else got it working?
More info: http://www.youtube.com/watch?v=K6Bg2sy3s8Y
Cannot replicate in latest snapshot, marking as Fixed. If you are able to replicate it please tell us.
I can still reproduce in 1.6.2.
I think: "Works As Intended"
I think it's definitely not intended to get looting when you aren't even using a looting item to get it.
Does it means when you fire TNT and take looting sword in your hand you will get extra loot without losing durability?
@Anon: I don't know if it's intended or not, but that's what you get when it's designed so that the Looting Effect comes from you holding the looting sword when the mob dies.
I think this is because splash potion of harming/healing damage counts as melee damage.
When a mob is damaged or killed by a player, the code probably checks what kind of damage it is (melee or ranged). If it's melee damage, then it applies the enchantment effects of the item the player is holding. (This is just an assumption.)
If that is the case, then this would be fixed by making splash potion attacks count as ranged damage (and a check to see if the projectile is an arrow or a splash potion).
Confirmed for 17w17b
also present in 1.14.4 (fired an arrow at a ghast, then switched to looting 3 sword, 3 ghast tears dropped)
Looting is based on if its a Player Kill
and killing it with a sword, bow, splash potion etc. Is a Player Kill
@RedCMD
My bow does not have looting. I didn't hit the ghast with my sword, I just fired my bow and switched to my sword while the arrow was in flight, and the looting effect was applied.
It has been nearly 7 years since I made this bug report, how is this still around?? I guess it's because it's not that important....which is kinda true. At this point, you can just call it a feature.
The description and summary should probably be updated to something like "Looting gets applied to other weapons on kill". Infinite looting isn't really the problem now that mending exists, it's more so that it can be applied to any player kill method so long as a looting sword is in their main hand on kill (so that includes bows, etc. in a player's off hand).
Confirmed in 20w16a
Confirmed for 20w21a
Confirmed for 1.16
wasnt the old bug where the looting sword was in the offhand? now it works in reverse in 1.16.2 (confirmed in 1.16.2 btw)..
I almost want to say mojang fix this bug, but add something like looting for bows.
this is a useful bug in survival, I think they should keep it or add looting to bows
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a. Video attached.
Can confirm in 21w11a.
Can confirm in 21w15a.
Can confirm in 21w17a.
I'd like to request ownership of this ticket since the current reporter has been inactive since October 2019. I'm willing to provide all of the necessary information and will keep this report updated.
I actually hope this gets marked as WAI, since it is quite a smart mechanic to allow looting to work on equipments other than the looting sword - players can get more drops if they use their weapons smart enough.
This "bug" was reported 9 years ago! The supposed bug was made part of Bedrock edition when it first came out, and recently this behavior was broken in an update and then immediately restored in a hot fix (see
MCPE-141935).Surely by now we can all agree that this report should be closed as "works as intended".
Age and other editions don't count towards whether a bug report is valid.
Mojang has never stated this is intended, and a priority has been assigned. The only reason the bedrock issue got fixed was because it was an unintentional change that broke parity, thus the change was reverted until they decide whether to actually INTENTIONALLY fix this, or keep this.
Just because people abuse a bug does not make it a feature.
A possible solution is to cache the ItemStack that causes the action in the DamageSource instance that will be used to cause the damage and check for enchantments against this item instead of the player's currently held item. The DamageSource will also need to be cached for projectiles and written to NBT in case the world is closed before the damage is applied.
On second thought, the DamageSource likely doesn't need to be written to NBT for projectiles, saving the ItemStack to the projectile should suffice. The ItemStack can be passed to the DamageSource when needed.
Is there an actual reason to fix this? After this many years, it's a feature just like quasi connectivity is with redstone.
It's only a feature when Mojang says it's a feature, and that it has beentriaged actually speaks against that.
Old issue != by design.
In 23w33a