Level costs depend on where you put items in an Anvil
When you try to assemble the enchantments of two diamond swords level asks you to join them depends on where you put the sword. Here I attached some pictures.
Environment
This happened to me while playing on a server in survival but I imagine this would happen in all gamemodes and singleplayer too.
Linked Issues
is duplicated by6
Created Issue:
Problem with levels in the anvil.
When you try to assemble the enchantments of two diamond swords level asks you to join them depends on where you put the sword. Here I attached some pictures.
Environment
This happened to me while playing on a server in survival but I imagine this would happen in all gamemodes and singleplayer too.
is duplicated by
Problem with levels intheanvil.Level costs depend on where you put items in an Anvil
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Duplicate of MC-3880 , please use the search function to see if your bug has already been submitted. Currently over 30% of tickets are being closed as duplicate.
I believe this is Working as Intended. The item in the right slot is always consumed. It is up to the player to figure out the most efficient way to use the anvil. Sometimes the experience level costs will vary just by switching the items in the two slots, and Mojang has said that this is intended. See MC-3880 and MC-4129.
Duplicate of MC-3880, please use the search function to see if your bug has already been submitted. Currently over 51% of tickets are being closed as duplicate.
Duplicate of MC-3880 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicate of MC-3880.
Thank you for your report!
We're already tracking this issue at MC-3880, so I will resolve and link this ticket 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:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
The level cost in an anvil is affected by what order you put the items in. The sacrificed item's repair cost is basically ignored if the primary item has a repair cost, rather than added up to the total level cost. Everything (durability, enchantments, etc.) is merged into the main item, including the RepairCost (it'll be the sum+penalty); it's just not initially included in the level cost. There's literally no logic behind why one way is more expensive than the other, while the resulting item is the same.
Clones MC-3880, but that was resolved as intended without Mojang source, this definitely seems like an oversight to me. I would request a reopen if the ticket wasn't ancient, so made this cloned report instead.
The only "source" provided by the resolving mod was a wiki page, which is stated time and time again, the wiki is not a source for intended or unintended behavior.
Easy steps to reproduce:
- Give yourself 2 diamond swords and an enchanted book with sharpness 5, one with fire aspect 2, and one with knockback 2
- Put 1 enchantment on 1 diamond sword, and the other 2 on the other sword.
- Put the swords in an avil, and look at the cost
- Switch around the swords, and notice a different cost, while the resulting item is the exact same.
Additional, see that both combinations have the same RepairCost value:
- Duplicate the swords using the pick block key in creative, and make both combinations.
- Use the following command while holding the created sword
/data get entity @s SelectedItem.tag.RepairCost
- Notice both swords have the same repair cost, despite the cost being different to create both swords.






I think that's intentional.
I don't get it: In Both cases you'll get a sword with KnockBack II, Fire II and Sharpness IV.
Please describe your issue better.
After help from other mods and re-re-reading your descripttion I guess that you're referring to the different costs of 30 to 34 levels.
That's working as intended, read on here: http://www.minecraftwiki.net/wiki/Anvil_mechanics
For example there is a penalty for already repaired items, that's the difference for putting them in the left or right slot. The resulting items is always the item in the left slot.
Kumasasa: The minecraft wiki describes the game as it is. That the wiki describes something doesn't seem to me to be great evidence that it was intended, or that all of the implications have been considered by Mojang.
I don't think this is intended. There is no reason the different slots should work differently.
Again: If the item in the left slot was already modified (renamed, combined) on the anvil, then there is a penalty for having used the anvil. If the item was never used on the anvil, then there is no penalty. The resulting item is in fact the same regarding the enchantments, but not in initial penalty.
That feature is quite useful to keep weapons over a longer time.
What? My complaint isn't about how long an item will last, it's that there are two different behaviors depending on which slot you put the items in. This is pointless, and should be fixed. It should just always give you the lower penalty, no matter how the items are arranged.
It's explicitely coded the way it is, any change to it would be a feature request.
So why is this considered intended, while
MC-75474is still open? They are both cases of something happening differently depending on the order of player actions, even though there is no reason for it.