Minecraft wiki entry for Train_station, associated text: Another variation made by nmoleo64 uses a detector rail wired to a command block with the command /kill @e [type=MinecartRideable,r=2] to remove the minecart.