I want to make a custom crafing system using droppers and need to check if certain slots are filled with the correct items. I can't find a way to check if certain slots are empty though. As not all recipes need every slot to be filled, this can cause wrong items in the unchecked slots to dissapear with the rest. Is it possible to check if a slot is empty somehow?


If a dropper slot is empty it means the corresponding compound tag with property Slot does not exist. Use /execute unless data to check if the slot is empty:

execute unless data block 12 23 34 Items[{Slot:0b}] run ...
  • Is it possible to check multiple slots in a single command by using an "execute unless ... execute unless ... run ..."? – Wicked Grinn Mar 11 at 20:05
  • @WickedGrinn Use multiple unless: execute unless data ... unless data ... run ... – ExpertCoder14 Mar 11 at 20:09
  • As I had hoped, thank you! – Wicked Grinn Mar 13 at 20:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.