mojira.dev
MC-269802

Selecting a villager trade merges items with different components

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

Attachments

Comments 1

NohanPotato

gegy

Community Consensus

Platform

Normal

Trading

24w12a

1.20.5 Pre-Release 2

Retrieved