Implement ability to push minecarts on curved rails

This is my first real code contribution to an open source project. I'm grateful for any advice!
Since Distance will never be zero, perhaps change `(Distance.z >= 0)` to `(Distance.z > 0)`?