Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267451

Items named with an anvil on 1.20.4 don't stack with items named prior


    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w09a
    • 1.20.4
    • None
    • Confirmed
    • Datafixer
    • Normal
    • Platform

      If I'm playing in a world created in Minecraft 1.20.1 or prior that was upgraded to 1.20.4, and I take a piece of paper and name it "SecretPassword," then that item _will not _stack with paper named SecretPassword created on prior versions. This effectively breaks many redstone contraptions as well as datapacks, requiring all filter items to be discarded and replaced with newly renamed items.

      The root cause is that, in 1.20.1 and prior, items named via anvil would have their NBT represented as


      whereas in the new version the NBT data is simply:


      Note that while this is also true for named block entities (chests, hoppers, brewing stands), the process of upgrading the world seems to have converted the names successfully to the new format.

            gegy1000 [Mojang] Gegy
            OpenBagTwo OpenBagTwo
            3 Vote for this issue
            4 Start watching this issue