Here you can learn about the Minecraft mod Railcraft.
Have you ever wished trains and rails had received a bit more attention during the development of Minecraft? Well that ends now! in their place are a ton of new cool tools to build your giant rail system. If you ever cared about train tracks and what you make, you won't ever look back!