Minecraft wiki entry for Minecart, associated text: Minecarts with command blocks can be given to the player only with the /give command; minecarts with spawners‌[Java Edition only] are available only via the /summon command. Each drop 1 minecart when broken.