Gated Track

These rails also function as a fence gate. They can be opened/closed manually or via redstone.

One-Way Gates boosts the minecart through the gate in order to prevent it from being pushed backwards by any animals in the area.

Hints

 * Using a Crowbar on the rail will reverse the direction the gate opens.
 * Make the fence double tall near gates or else animals can climb on the minecart and jump the fence.
 * Use Control Rails to keep carts from stalling when crowded by animals.
 * Place a Detector block, facing up, under the rail to automatically open the gate.