Minecart with Command Block

Minecart with Command Block is a command block inside a minecart.

Obtaining
Minecart with command block is only obtainable using commands. It can be broken like any other minecart, but the command block is lost.

Usage
The minecart with command block combines the functionalites of both minecarts and command blocks. It runs its command repeatedly (each 4 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.

In 1.9, the command block minecart is similar to the new repeating command block when put on always activated. It'll act like a command block minecart always on an active activator rail, however you can use a comparator at the same time with the new command block, while you had to pass it over a detector rail and comparator before.

Entity data
Minecarts with command blocks have entity data associated with them that contain various properties of the entity. Their entity ID is.

ID
A minecart's ID distinguishes between the different minecart types.

Gallery
Befehlsblocklore コマンドブロック付きトロッコ Mijnkar met opdrachtblok Wagonik z blokiem poleceń Вагонетка с командным блоком 命令方块矿车