Minecraft Java Edition Redstone – How to Output Signal with Pressure Plate Timing

minecraft-java-editionminecraft-redstone

I'm making a map where players have to stand on a pressure plate for three seconds before the dragon is spawned. Is there a way to make it so the only way to output a signal is when you stand on the pressure plate for three seconds in a row?

Best Answer

You can use this contraption, where the output is the redstone torch on the right.

enter image description here

But make sure the hoppers face into each other!

enter image description here

How does it work? In the default state the hopper with the items in it is locked, so the items stay in it. When you step on the pressure plate the front hopper gets unlocked and the back one locked, so items start flowing out of the front one. Once the front hopper is empty (after about 3 seconds) the comparator turns off, allowing the redstone torch to turn on.