| Type: | Bug | ||
| Reporter: | [Mod] Avoma | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 54 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category: |
Combat, Enchantments, Loot tables
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mojang Priority: | Low | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Area: | Platform | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
The Bug:Enchantments from items held in the main hand are applied to other items when entities are killed. Steps to Reproduce:
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. |
| Comments |
| Comment by Jon1337 [ 19/Aug/23 ] |
|
In 23w33a |
| Comment by user-f2760 (Inactive) [ 24/Jun/22 ] |
|
It's only a feature when Mojang says it's a feature, and that it has beentriaged actually speaks against that. |
| Comment by Chris [ 24/Jun/22 ] |
|
Is there an actual reason to fix this? After this many years, it's a feature just like quasi connectivity is with redstone. |
| Comment by Chumbanotz [ 31/May/22 ] |
|
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. |
| Comment by user-f2760 (Inactive) [ 25/May/22 ] |
|
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. |
| Comment by 冯锦元 [ 18/Dec/21 ] |
|
Age and other editions don't count towards whether a bug report is valid. |
| Comment by Mr. K [ 28/Oct/21 ] |
|
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 Surely by now we can all agree that this report should be closed as "works as intended". |
| Comment by windwend [ 17/Aug/21 ] |
|
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. |
| Comment by [Mod] Avoma [ 23/May/21 ] |
|
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. |
| Comment by [Mod] Avoma [ 30/Apr/21 ] |
|
Can confirm in 21w17a. |
| Comment by [Mod] Avoma [ 19/Apr/21 ] |
|
Can confirm in 21w15a. |
| Comment by [Mod] Avoma [ 27/Mar/21 ] |
|
Can confirm in 21w11a. |
| Comment by [Mod] Avoma [ 18/Feb/21 ] |
|
Can confirm in 21w07a. Video attached. |
| Comment by [Mod] Avoma [ 12/Feb/21 ] |
|
Can confirm in 21w06a. |
| Comment by [Mod] Avoma [ 04/Feb/21 ] |
|
Can confirm in 21w05b. |
| Comment by [Mod] Avoma [ 22/Jan/21 ] |
|
Can confirm in 21w03a. |
| Comment by [Mod] Avoma [ 21/Dec/20 ] |
|
Can confirm in 20w51a. |
| Comment by GamerZone [ 03/Sep/20 ] |
|
this is a useful bug in survival, I think they should keep it or add looting to bows |
| Comment by Fahlur [ 30/Aug/20 ] |
|
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. |
| Comment by Iosiv Visokogorskiy [ 23/Jun/20 ] |
|
Confirmed for 1.16 |
| Comment by Loek van Vucht [ 21/May/20 ] |
|
Confirmed for 20w21a |
| Comment by Alugia [ 16/Apr/20 ] |
|
Confirmed in 20w16a |
| Comment by Krev [ 13/Nov/19 ] |
|
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). |
| Comment by Xristos Mpesiris [ 13/Oct/19 ] |
|
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. |
| Comment by overcooked [ 13/Oct/19 ] |
|
@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. |
| Comment by RedCMD [ 13/Oct/19 ] |
|
Looting is based on if its a Player Kill |
| Comment by overcooked [ 12/Oct/19 ] |
|
also present in 1.14.4 (fired an arrow at a ghast, then switched to looting 3 sword, 3 ghast tears dropped) |
| Comment by user33 [ 30/Apr/17 ] |
|
Confirmed for 17w17b |
| Comment by BoxFigs [ 15/Oct/14 ] |
|
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). |
| Comment by Afzal Rahman [ 18/Mar/14 ] |
|
@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. |
| Comment by Miroslav Popovic [ 18/Mar/14 ] |
|
Does it means when you fire TNT and take looting sword in your hand you will get extra loot without losing durability? |
| Comment by Anon Ymus [ 05/Sep/13 ] |
|
I think it's definitely not intended to get looting when you aren't even using a looting item to get it. |
| Comment by karstvgl [ 05/Sep/13 ] |
|
I think: "Works As Intended" |
| Comment by Anon Ymus [ 13/Aug/13 ] |
|
I can still reproduce in 1.6.2. |
| Comment by GrygrFlzr [ 25/Jun/13 ] |
|
Cannot replicate in latest snapshot, marking as Fixed. If you are able to replicate it please tell us. |
| Comment by user-9dcfe (Inactive) [ 01/May/13 ] |
|
More info: http://www.youtube.com/watch?v=K6Bg2sy3s8Y |
| Comment by Nathan2055 [ 17/Jan/13 ] |
|
Tested it today as I was going through my upvoted bugs and was unable to reproduce. Anybody else got it working? |
| Comment by Nathan2055 [ 28/Dec/12 ] |
|
@Gerrard Lukacs: Actually, you're right. YouTubers get a lot more hits than the bug tracker, too. |
| Comment by WolfieMario [ 28/Dec/12 ] |
|
This bug isn't a security issue. Also, it's already in videos - setting it to private would just lead to duplicate reports. |
| Comment by Nathan2055 [ 28/Dec/12 ] |
|
This is a bug that people can take advantage of, so it should be set to private. |
| Comment by John [ 18/Dec/12 ] |
|
Well, it is very useful, even though it is a bug. |
| Comment by Xristos Mpesiris [ 19/Nov/12 ] |
|
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! |
| Comment by Chalmes (Jon) [ 18/Nov/12 ] |
| Comment by WolfieMario [ 17/Nov/12 ] |
|
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. |