Anti-Grief
For this you will need:
-Sticky Pistons
-Cobblestone( or any type of building material)
-Red stone
-Red stone Torch
-Repeater
-switch
Roof
Start out with a roof of the size of your liking and leave a trail of cobblestone
Piston
Place a rectangle of cobblestone and place 2 or more sticky pistons
Redstone
Put the red stone behind the piston to connect it together
Support
Add 2 more levels so the water can go there and the water at the top
Stairs
Make stairs so the redstone can flow down
Path
Make the redstone path and stop wherever you are
Repeator
Put the repeaters down.
Switch
Put a switch at the end so you can turn it off and on
Test
Test your invention so you can see if it works
Walls
Always protect your red stone from the water