Minecart with Command Block
dec: 422 hex: 1A6 bin: 110100110
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
MinecartCommandBlock[until 1.11] (
- 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 with Chest|
||Minecart with Furnace|
||Minecart with TNT|
||Minecart with Hopper|
||Minecart with Command Block|
History[edit | edit source]
|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
Issues[edit | edit source]
Issues relating to “Minecart with Command Block” are maintained on the issue tracker. Report issues there.