Minecraft – Create contraption: regenerating floor block toggle

minecraft-java-editionminecraft-redstone

How do I create a system that does the following when pulsed:

  1. Switches a block from the floor with a stone block
  2. Waits for a couple seconds, wherein the block is destroyed by a player
  3. Puts the original floor block back
  4. Replaces the empty space where the stone was destroyed with another stone block from a generator.

I've tried using simple stone generator and block switcher mechanisms, but they always replace the empty space where the stone was with a piston head. Is there a different block switcher that doesn't do that, or is there a better way to create the same effect?

Best Answer

Just have the generator close but not part of the swapper. At least one block should be "ready" to be insert into the swapper at the right time instead of hoping that the generator creates a new block in time. Since lava/water generate stone based a little bit on random ticks you can't rely on that timing, but if you have the block ready and then the generator will be able to replace it during the time the rest of the contraption is working.