Minecraft – How to make pistons push back minecart tracks

minecraft-java-edition

I'm trying to make a door to my undergound house. The minecart passes over a pressure plate and it starts some pistons, which then open a hidden door in the wall. But my problem is, while the sticky piston pulls the stone bricks normally, the minecart tracks stay. So, my track has a hole in it everytime I close the door. I can't post pictures, because I'm a new user, sorry.

Is there a way to make the track come back with the blocks?

Best Answer

As far as I understand your question, you have trouble with the track going trough the door...

Here is a screenshot of my setup, first you switch over to the new track, then you go trough the 'door', but by going down under the door block the track doesnt break and just creates a slope whenever the door is open, this would work in both directions.

Overview

Track under the door

Also as often happens with these timed things, the doors or track switcher might not stay open long enough, here is a way to lengthen that. (This is my own design, not all that compact, but the only thing that makes sense and works for me)

Time span