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

Selecting a villager trade merges items with different components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 2
    • 24w12a
    • None
    • Community Consensus
    • Trading
    • Normal
    • Platform

      If you have stackable items with different components (custom_data, or custom_model_data) in you inventory. The stacks will merge when you select a villager trade that accepts the base item.

      Reproductions:

      • Spawn a librarian villager.
      • Get emeralds and two books a vanilla one without custom components and one with
        • /give @p minecraft:book[minecraft:custom_data=\{Test:1b}]
      • Select a trade for an echanted book
      • The two books will be merged into one stack

        1. 2024-03-23_10.40.55.png
          2024-03-23_10.40.55.png
          799 kB
        2. 2024-03-23_10.41.17.png
          2024-03-23_10.41.17.png
          801 kB
        3. 2024-03-23_10.41.18.png
          2024-03-23_10.41.18.png
          802 kB
        4. 2024-03-23_10.41.02.png
          2024-03-23_10.41.02.png
          801 kB

            gegy1000 [Mojang] Gegy
            NohanPotato NohanPotato
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: