Redstone Clock With Comparator. A redstone comparator is a block that can produce a redstone signal from its front by reading chests, lecterns, beehives and similar blocks, or repeat a signal without. A redstone comparator is a block that can produce an output signal from its front by reading chests, lecterns, beehives and similar blocks, or repeat a signal without changing its strength.
It can also be set to either stop. This is another clock that works the same way, but may fit better in small spaces.