How to build a timed gate in Minecraft?

Qu
5

I've built a gate and want it to close automatically at night and automatically open again during the day. Do you know how to build something like this? You are welcome to link me to Youtube tutorials.

By the way, I play the Java edition.

Ap

Minecraft has a daylight sensor that emits a redstone signal when daylight shines on it.

pr

You can do that with a daylight sensor or whatever it's called.

I'll wait to send in a screen.

Ma

I play the Bedrock version, but since no one has answered you yet, my strategy may help you:

- Build on / off portal (there are numerous tutorials on YouTube)

-Combine this with a daylight sensor and set it to work during the day and not at night

Ma

Oh, someone had answered you in the meantime.

Ma

You build a normal gate / door and connect it to a daylight sensor…