Minecraft – How to lock a hopper once it has picked up an item

minecraft-java-editionminecraft-redstone

I have 6 shulker boxes in a dispenser, they travel by hopper down a line of dispensers they can end up in, I want to have 1 end up in each of the 6 dispensers, so if I run a hopper line across all the dispensers, is there a way to lock a hopper from taking a shulker box if it already has?

EDIT:
Screenshot

Best Answer

Second Solution If you must have your items feeding into the side of the dispenser, try this method instead! Start with the redstone block on top, not on the bottom like where it is in the picture. (Oops, bad picture!)

That aside, with the redstone block on top, the hopper is now ready to receive items. When an item is detected by the comparator, it pushes the redstone block down, which turns the redstone torch on and locks the hopper. To reset it and enable the hopper to again accept one more item, just provide a short pulse to the bottom piston to push the redstone block back up.

This solution is also one wide and tileable, like my previous one. Like my previous one, you will also have to limit the rate the items flow in (maybe by slowing down the dropper clock in the top left of your screenshot?).