A railway mine cart can be done both using only eventing or have everything fully controlled by a script.
For eventing, all you need is to change the character sprite to one with cart and force move route to get the cart move on the rail to the end destination then change the character sprite back.
For script, one that works require you to set the tile passage (4dir) on the rails and a few script calls on the cart.
Click for demo Link, script is inside the demo.
Both eventing and script has their share load of work so i can't say which one's better.
Script require you to set up tons of stuffs in the start but allows automated cart moving on the rail.
Eventing is easier to understand but will need some work on the move route setting, especially when you have a long long rail.