Minecart with Command Block

From Minecraft Wiki
Jump to: navigation, search
Minecart with Command Block
Minecart with Command Block.png









Network ID


Savegame ID




Health points

6 (Heart.svgHeart.svgHeart.svg)

First appearance

1.7.2 (13w39a)

Data value

dec: 422 hex: 1A6 bin: 110100110



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

Obtaining[edit | edit source]

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

Usage[edit | edit source]

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 Repeat 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.

Data values[edit | edit source]

Entity data[edit | edit source]

See also: Chunk format

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

  • Entity data
    • Tags common to all entities

    • Tags common to all minecarts

    •  Command: The command entered into the minecart.

    •  SuccessCount: Represents the strength of the analog signal output by redstone comparators attached to this minecart. Only updated when the minecart is activated with an activator rail.

    •  LastOutput: The last line of output generated by the minecart. Still stored even if the gamerule commandBlockOutput is false. Appears in the GUI of the minecart when right-clicked, and includes a timestamp of when the output was produced.

    •  TrackOutput: 1 or 0 (true/false) - Determines whether or not the LastOutput will be stored. Can be toggled in the GUI by clicking a button near the "Previous Output" textbox. Caption on the button indicates current state: "O" if true,"X" if false.

ID[edit | edit source]

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

Icon Dec Hex Name Minecart type

328 148 minecart Minecart

342 156 chest_minecart Minecart with Chest

343 157 furnace_minecart Minecart with Furnace

407 197 tnt_minecart Minecart with TNT

408 198 hopper_minecart Minecart with Hopper

422 1A6 command_block_minecart Minecart with Command Block

History[edit | edit source]

Official release
1.7.2 13w39a Added minecart with command block.
1.9 15w34a Removed the texture of the command block in the minecart due to the new texture and types for the command block.
15w35a Change the texture of the command block.

Issues[edit | edit source]

Issues relating to “Minecart with Command Block” are maintained on the issue tracker. Report issues there.

Gallery[edit | edit source]