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.
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.
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
- 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.|
Issues[edit | edit source]
Issues relating to “Minecart with Command Block” are maintained on the issue tracker. Report issues there.