Minecart with Command Block

A minecart with command block is an impulse/repeating command block inside a minecart.

Obtaining
The minecart with command block is only obtainable using the command, as it has no crafting recipe. It can also be summoned using the command. It can be broken like any other minecart, but only the minecart is retained, while the command block is lost.

Usage
The minecart with command block combines the functionalities of both minecarts and command blocks. Although the minecart visually contains an Impulse command block, it functions more similarly to a Repeating command block, and runs its command once every four game ticks when on an active activator rail. When it passes over a detector rail with a comparator connected next to it, it will output the command block's result.

Entity data
Minecarts with command blocks have entity data associated with them that contain various properties of the entity. Their entity ID is  in Java Edition, or   in Bedrock Edition and Education Edition.

Trivia

 * In Bedrock Edition in simplified Chinese (zh-cn), Minecart with Command Block is translated into "带有命令块的《我的世界》" (Minecraft with Command Block).

Gallery
Befehlsblocklore Wagonnet à bloc de commande Carrello da miniera コマンドブロック付きトロッコ Mijnkar met opdrachtblok Wagonik z blokiem poleceń Carrinho com Bloco de Comando Вагонетка с командным блоком 命令方块矿车