Minecart with Command Block

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









Internal ID


Network ID


Entity ID




Health points

6 (Heart.svgHeart.svgHeart.svg)

First appearances

See History

Data value

dec: 422 hex: 1A6 bin: 110100110



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

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

  • Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all minecarts see Template:Nbt inherit/vehicle/template

    •  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 commandblock_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.
1.11 16w32a The entity ID is changed from MinecartCommandBlock to commandblock_minecart.

Issues[edit | edit source]

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

Gallery[edit | edit source]