Unlock a redstone repeater after a period of time

Unlock a redstone repeater after a period of time - Asian couple in masks holding hands while walking near river

Context: I installed a train mod for fabric 1.16.5. The mod currently comes with what's called a "Platform Screen Doors", which will open with the train door at the same time.

I am currently trying to play an custom sound with command block when the Platform Screen Door is opened. But since it does not emit any redstone signal, I have used an observer shown below: (Command block not shown) Observer lit up for one tick when the door is opened

This by itself works as intended, where the observer would lit up for 1 tick, delay for 1 redstone tick, then repeat as long as the door is opened.

But I want it to only trigger the command block once, then wait for x seconds before it's allowed to be triggered again.

My thoughts would be to lock the repeater once it's activated, go through a bunch of repeater (for delay), then unlock it, but I can't think of how can I let it unlock by itself.

UPDATE: Hacked my way through it, but I doubt it will be reliable on long runs. My current implementation

Essentially once the observer is triggered, it will:

  1. Lock the repeater
  2. Trigger the command block for playsound
  3. Go through a lot of repeaters (So I can delay it for 20s)
  4. Set "block1" (The pink square) to air to unlock the repeater.
  5. Delay for a bit, then set block1 back to redstone dust for the next use.

Though I still can't think of how can I delay it for 20s without a lot repeaters, I don't want to use Piston + hopper as it creates sounds I also have no idea how reliable setblock command really is Sorry I usually don't touch redstone stuff, any suggestion appreciated!






Pictures about "Unlock a redstone repeater after a period of time"

Unlock a redstone repeater after a period of time - Silver and Black Chronograph Watch
Unlock a redstone repeater after a period of time - Topless Baby Lying on Bed
Unlock a redstone repeater after a period of time - Baby in White Tank Top Lying on White Bed



Quick Answer about "Unlock a redstone repeater after a period of time"

  • Lock the repeater.
  • Trigger the command block for playsound.
  • Go through a lot of repeaters (So I can delay it for 20s)
  • Set "block1" (The pink square) to air to unlock the repeater.
  • Delay for a bit, then set block1 back to redstone dust for the next use.


  • How do you unlock Redstone repeater?

    In the crafting menu, you should see a crafting area that is made up of a 3x3 crafting grid. To make a redstone repeater, place 3 stones, 2 redstone torches, and 1 redstone dust in the 3x3 crafting grid.

    How long do repeaters last in Minecraft?

    When initially placed, a redstone repeater has a delay of one redstone tick (equivalent to two game ticks, or 0.1 seconds barring lag).

    How do you make Redstone repeaters last longer?

    Simple: 15 Blocks is your answer.



    How to make a Redstone piston repeat it self




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Kowal Tyler, Thang Cao, Yan Krukov, Yan Krukov