How can I check whether a certain item with NBT is in a dropper. Slot doesn't matter. I'm playing in version 1.15.2
/ execute if data block X Y Z {Items: [{id: "minecraft: item"}]}
And how would it work that the item has a certain name?
/ execute if data block X Y Z {Items: [{id: "minecraft: item", tag: {display: {Name: "{\" text \ ": \" Itemname \ "}"}}}]}] run say