Tutorials/Water gate

A Water Gate is a kind of gate built out of sugar cane used for its ability to block many things, such as water.

Materials
The main material for a water gate is Sugar Cane. The reason for this is because things like water, fire, mobs, and arrows cannot pass through Sugar Cane. It is also completely fireproof, so it isn't able to be burned, even if Flint and Steel is used on it.

Making the Gate
Water gates are simple; decide where the water gate will be placed, place dirt under where you want it. When all the dirt is placed, plant the Sugar Cane, using it as a wall. If it is being constructed underwater, place the sugar cane behind the current separating layer, then mine what is in front of it. A Tutorials/Floodgate is similar, but using more gate logic.

Trivia

 * A water gate can serve the double purpose of farming sugar canes. However, one must be careful not to farm the outermost layer if it is blocking a fluid, or it will flood.