Minecraft – Comparator won’t work

minecraft-java-editionminecraft-redstone

I am trying to make a "Zombies" map and you need five rotten flesh to open the door. I made hopper to put the items in the chest with a comparator to power the door. No matter how many items I put in the chest the comparator only sends a length of one to the redstone.

What can I do to fix this?

Best Answer

Assuming you're using a small (non-double) chest, try filling it like so:

64 in the first slot, 30 in the second slot, 1 in every other slot

Then set up your redstone roughly like this:

Comparator, two blocks of redstone, repeater, redstone leading to an iron door

The comparator will output a signal with strength 1 if there are between 1 and 123 pieces of flesh in the chest, and strength 2 (or higher) if there are more. Putting 115 pieces of flesh in the chest means that five more pieces are needed to increase the strength. Once those five pieces are inserted, the repeater will activate, and power the door.