Minecraft wiki entry for Building_a_rollercoaster, associated text: Use a Command Block to target the minecart and teleport it to the destination with /tp @e[c=1,type=minecart] DESTINATION in Bedrock Edition, or /tp @e[limit=1,sort=nearest,type=minecart] DESTINATION in Java Edition.