1

I'm currently working on an advancement pack for Minecraft and I wanted to be able to check if a player has a certain item in a certain slot of their inventory. This is what I'm working with right now:

"criteria": {
        "grab_sand": {
            "trigger": "minecraft:inventory_changed",
            "conditions": {
                "items": [
                    {
                        "item": "minecraft:sand",
                        "nbt": "{Inventory:[{Slot:0b}]}"
                    }
                ]
            }
        }
    }

When trying to put a piece of sand in my first slot it won't give me the advancement. Any ideas why this isn't working?

  • What Minecraft are you writing this for? – Joachim Mar 31 at 18:24
  • Minecraft Java Edition – ieatcrayons05 Mar 31 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.