"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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→
A ding sound event plays. - 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.
- Unresolved
user-a4a49
- 8
- 7
- Confirmed
- Advancements Data Packs
- inventory inventory_changed items
1.16-rc1 - 1.21.4
1.16-rc1 1.16 1.16.1 20w27a 20w28a 20w29a 20w30a 1.16.2-pre1 1.16.2-pre2 1.16.2-pre3 1.16.2-rc1 1.16.2-rc2 1.16.2 1.16.3-rc1 1.16.3 1.16.4-pre1 1.16.4-pre2 1.16.4-rc1 1.16.4 20w45a 20w46a 20w48a 20w49a 20w51a 21w03a 1.16.5-rc1 1.16.5 21w05a 21w05b 21w06a 21w07a 21w08a 21w08b 21w10a 21w11a 21w13a 21w14a 21w15a 21w16a 21w17a 21w18a 21w19a 21w20a 1.17-pre1 1.17-pre4 1.17-rc1 1.17-rc2 1.17 1.17.1-pre1 1.17.1 21w39a 21w41a 21w42a 1.20.6 1.21.4
Created Issue:
"inventory_changed" advancement trigger with "items" parameter does not work anymore if having a specified item beforehand and then obtaining or consuming a different item
The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- Obtain a different item.
→The ding sound event does not play even if the inventory changes and still has the Crafting Table.
The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- Obtain or remove a different item.
→The ding sound event does not play even if the inventory changes and still has the Crafting Table.
The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- Obtain, consume, or remove a different item.
→The ding sound event does not play even if the inventory changes and still has the Crafting Table.
"inventory_changed" advancement trigger with "items" parameter does not work anymore if having a specifieditem beforehand and then obtaining or consuming a different item"inventory_changed" advancement trigger with "items" parameter does not work anymore if having a specific item beforehand and then obtaining or consuming a different item
"inventory_changed" advancement trigger with "items" parameter does not work anymore if havingaspecificitem beforehand and then obtaining or consuming a different item"inventory_changed" advancement trigger with "items" parameter does not work anymore if having the specified item beforehand and then obtaining or consuming a different item
The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
Obtain, consume, or remove a different item.
→The ding sound event does not play even if the inventory changes and still has the Crafting Table.
The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- Update the inventory keeping the Crafting Table intact.
→The ding sound event does not play even if the inventory changes and still has the Crafting Table.
The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- Update the inventory keeping the Crafting Table intact.
→The ding sound event does not play even if the inventory changes and
still has the Crafting Table.The bug
When using an items parameter 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- 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.
The bug
When using an items parameter 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.
It is further proven to be a bug since it was not announced during 1.16 development.
How to reproduce
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- 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.
The bug
When using an items parameter 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.
It is further proven to be a bug since it was not announced during 1.16 development.
How to reproduce
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- 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.
"inventory_changed" advancement trigger with "items"parameterdoes not work anymore if having the specified item beforehand and then obtaining or consuming a different item"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
parameterin 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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- 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.
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
- Install the data pack below in a world for easier reproduction.
- Obtain a Crafting Table.
→A ding sound event plays.
- 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.
The bug should be assigned to the Data Packs category.
What's the bug?
Here is an example advancement:
{ "criteria": { "crafting_table": { "trigger": "inventory_changed", "conditions": { "items": [ { "item": "crafting_table" } ] } } }, "rewards": { "function": "game:root" } }# root.mcfunction tellraw @a ["",{"selector":"@s"}," has a Crafting Table"] advancement revoke @s only game:rootObtain a Crafting Table, and a message is shown in chat. Obtain another item, and the message is not shown in chat although you have the Crafting Table intact. This does not happen in older versions.
The bug should also be assigned to the Advancements category.