Mojira Archive
MC-191076

"inventory_changed" advancement trigger with "items" condition does not work anymore if having the specified item beforehand and then obtaining or consuming a different item

The bug

When using an items condition in the inventory_changed advancement trigger to detect for a specific item in the inventory, the advancement does not work anymore if the player has that item beforehand and then obtains or consumes a different item. This is not the case in 1.15.2 and older versions.

How to reproduce

  1. Install the data pack below in a world for easier reproduction.
  2. Obtain a Crafting Table.
    A ding sound event plays.
  3. Update the inventory keeping the Crafting Table intact.
    The ding sound event does not play even if the inventory changes and preserves the Crafting Table.