Minecart with Command Block

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







Internal ID

JE: 40
BE: 100

Network ID


Entity ID

JE: commandblock_minecart
BE: command_block_minecart



Health points

6 (Heart.svgHeart.svgHeart.svg)

First appearances

See History

Data values

JE: dec: 422 hex: 1A6 bin: 110100110
BE: dec: 443 hex: 1BB bin: 110111011



A minecart with command block is a command block inside a minecart.

Obtaining[edit | edit source]

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

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 in Java Edition, or command_block_minecart in Bedrock Edition.

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

Minecart type Item Name Item Dec Item Hex Entity Name Entity Dec Entity Hex

minecart 328 148 minecart 42 84 2A 40

Minecart with Chest
chest_minecart 342 156 chest_minecart 43 98 2B 62

Minecart with Furnace
furnace_minecart N/A 343 N/A 157 N/A furnace_minecart N/A 44 N/A 2C N/A

Minecart with TNT
tnt_minecart 407 197 tnt_minecart 45 97 2D 61

Minecart with Hopper
hopper_minecart 408 198 hopper_minecart 46 96 2E 60

Minecart with Command Block
command_block_minecart 422 443 1A6 1BB commandblock_minecart command_block_minecart 40 100 28 64

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.
Pocket Edition
1.0.5 build 1
Added minecart with command block.
Has a repeating command block in it instead of an impulse command block.
1.1 build 1 The entity ID is changed from minecartcommandblock to command_block_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]