Pistons are useful for many things, including gates (finally, some way of creating a gate that doesn’t involve modding Minecraft or shoving a door in the middle of your fence awkwardly.) It’s actually pretty simple to make a retractable gate using pistons. I should note that the original design for this is not mine, but the cutaway showing how the design actually works on the inside is.
thats what i did!!!! its great!