[MC-2756] Possible to put stacked sword in the anvil Created: 11/Nov/12  Updated: 21/May/21  Resolved: 21/May/21

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.4, Minecraft 1.4.7, Snapshot 13w05b, Minecraft 1.5, Minecraft 1.7.4, Minecraft 14w03b, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w17a, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 5, 1.14.4, 1.15 Pre-release 1, 1.15 Pre-release 6, 1.15.1, 1.15.2, 20w15a, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w46a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a
Fix Version/s: None

Type: Bug
Reporter: Oval Assignee: Unassigned
Resolution: Won't Fix Votes: 11
Labels: None

Attachments: File Minecraft - Anvil Bug.mp4    
Issue Links:
Duplicate
is duplicated by MC-26054 Stacked items in anvil and brewing stand Resolved
is duplicated by MC-3318 Duplicate glitch - Anvil Resolved
Relates
relates to MC-95555 Anvil can apply any enchantment to an... Resolved
relates to MC-3444 The give command will stack any item Resolved
CHK:
Confirmation Status: Confirmed
Category:
UI

 Description   

The bug

You can put stacked items that normally aren't stackable into the anvil, expected it to just put one item into the anvil. (Video by capblackshot)

How to reproduce

  1. Give yourself 64 swords, and one enchanted sword.
    /summon minecraft:item ~ ~ ~ {Item:{id:"diamond_sword",Count:64b}}
    /give @p diamond_sword{Enchantments:[{id:sharpness,lvl:3},{id:fire_aspect,lvl:1},{id:looting,lvl:3},{id:sweeping,lvl:3},{id:unbreaking,lvl:1}]}
    
  2. Put the illegal stacked item in the anvil.
    Puts the 64 swords in the anvil, should put only one as its not stackable
  3. Put the enchanted sword in the second anvil slot.
    It valids the process; you can apply the enchantments to the 64 swords.


 Comments   
Comment by [Mod] Avoma [ 28/Mar/21 ]

Can confirm in 1.16.5 and 21w11a.

Comment by [Mod] markderickson [ 20/Feb/21 ]

Can confirm in 21w07a.

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 [ 03/Feb/21 ]

Can confirm in 21w05a.

Comment by [Mod] Avoma [ 22/Jan/21 ]

Can confirm in 21w03a.

Comment by [Mod] Avoma [ 24/Dec/20 ]

Can confirm in 20w51a.

Comment by Marty McFly [ 19/Jun/20 ]

Affects 1.16 Release Candidate 1

Comment by Kroppeb [ 07/May/19 ]

Can confirm for 1.14.1pre1

Comment by user-f2760 (Inactive) [ 17/Mar/16 ]

No response for over a year.

Comment by Galaxy_2Alex [ 24/Oct/14 ]

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Itouch2 [ 28/Apr/14 ]

Confirmed for 14w17a

Comment by Itouch2 [ 01/Mar/14 ]

Still a concern in 1.7.5 and 1.8

Comment by Mike Harper [ 26/Jan/13 ]

We found another issue with stacked items (tools and weapons) going into an anvil. One of the players on our server was able to enchant an entire stack of 64 picks with a single enchanted book.

Comment by Eric [ 01/Jan/13 ]

In the case of repairs, it repairs only the top item in a stack (which is the only one damaged), and in the case of naming or enchanting stacks, it isn't possible legitimately, and it can be used to name or enchant stacks of swords (or other unstackable items) in an adventure or PvP map. I would use it to mass produce enchanted or named items that don't normally stack by /give-ing myself a stack of the items and enchanting the stack of them or naming the stack and distributing them. Correct me if I'm wrong.

Comment by Kumasasa [ 09/Dec/12 ]

The issue here is not to put stacked items on the anvil per se, it's using normally *un*stackable items as a stack on the anvil.

Comment by nickyjefferz [ 09/Dec/12 ]

However, its not a bad idea to rename a stack of blocks cheaply; forcing users to individually rename dirt for example in an adventure map would be tedious for map makers, I have no idea why you would want a stack of swords unless they were all the same, again this is only relevant for map makers who would be the only people to use this.

Comment by Kumasasa [ 19/Nov/12 ]

Jonathan, you are right. Reopened

Comment by Jonathan Haas [ 18/Nov/12 ]

You can also get a stack of swords by using
/give NAME 276 64

so I guess this bug should be reopened. Also, changing the anvil code to prevent stacked repairs or to calculate the correct cost should be quite trivial.

Comment by [Mod] CubeTheThird [ 11/Nov/12 ]

This is because tools and armour cannot be stacked. To achieve this, you would have to either use a mod, or edit the game files.

Generated at Sun Jan 12 11:58:56 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.