If you want to detect them in certain slot, you can use /testforblock command, it is very simple. If you want to detect them in any slot, I have a solution, but it is quite complicated. Step2: Destroy the chest so that all items in the chest will drop into water.
How do you collect one thing in your chest?
While in the chest hold shift key on keyboard while clicking on an object . Or if you want break the chest and you will get all the items into your inventory at once .
Can you name a chest in Minecraft?
you can rename chests in an anvil before placing them to have a custom gui name.
Can you name a chest?
You can actually name chest with an anvil, and when you place that chest and open it instead of saying chest it will have the name you assigned it.
How to test if a chest contains an item?
I’ve seen a lot of questions for finding specific items in chests using commands using testforblock but how would you test if any block/item has been placed in a chest? Note the extra {} in the Items list.
Where do you put snowballs in the chest?
I.e. any number of snowballs works, as but they need to be in the third slot from the top left, which is slot 2 because of 0-indexing. Any other items in the chest are also ignored. You can add more item tags to the Items tag (comma separated, between the []) to match more items.
How to test for coal in a chest?
I want to test for 10 coal in a chest, not just for one. This works because the Count and Damage keys must be between the same brackets (in the same object and the same array) as the id key. Note, if you want to test for the items in any of the inventory’s slots, remove the Slot key.
Can you find Creepers in a chest in Minecraft?
1 Technically, everything matches {}, including Creepers, but the Items tag limits the scope for us. Thanks for contributing an answer to Arqade! Please be sure to answer the question. Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers.