mojira.dev
MC-234703

inventory_changed does not trigger when items are placed into a container

The inventory_changed advancement criteria only runs when items are put into the player's inventory and not when the player puts items into a container such as a chest. 

 

Steps to reproduce:

  1. Make an advancement with the criteria

  2. Make it reward a function that prints a message in chat (and removes the advancement)

  3. Place an item into a chest, you'll notice that the advancement doesn't run

Attachments

Comments 1

I don't see the issue here the containers aren't apart of the inventory. The video shows everything working fine you click on the item and it triggers at that point it isn't apart of the inventory anymore.

thenuclearnexus

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved