The furnace minecart already has a functionality similar to this. If you push a furnace minecart and four other minecarts against a wall they will "shunt" together. The only problem with this featu...
I like this idea. Maybe we could extend this to anvils and enchanting table. We could even extend this to the new 1.14 blocks.