The following advancement:
{
"criteria": {
"test": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": "minecraft:iron_nugget",
"count": 64
},
{
"items": "minecraft:iron_nugget",
"count": {
"min": 36
}
}
]
}
}
}
}Will trigger with only 64 iron ingots in the inventory (as it matches both specified items). I expected that it would only trigger when there are two slots filled with iron nuggets, one with 64 and one with at least 36.
There was another issue about the counts not going cross-slot which was marked as "works as intended", but if the item declarations also check slots multiple times it becomes difficult if not impossible to check for more than one stack amount of the item with advancements.
Linked issues
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Confirmed on 1.20.6