Is there a possibility at Mc to build a circuit in such a way that it emits a signal that lasts for 20 seconds every 30 seconds, unfortunately I couldn't find anything suitable on the network?
Since I can't explain this to you, I would recommend you use a capacitor with a Redstone torch at the output (and possibly a repeater).
Here is a video of how capacitors work: