Minecart with Command Block

From Minecraft Wiki
(Redirected from Command block minecart)
Jump to: navigation, search
Minecart with Command Block
Minecart with Command Block.pngMinecart with Repeating Command Block.png


Type

Vehicles

Renewable

No

Stackable

No

Internal ID

JE: 40
BE: 100

Network ID

10

Entity ID

command_block_minecart

Drops


Minecart
(1)

Health points

6 (Heart.svgHeart.svgHeart.svg)

First appearances

See History

Data value

dec: 443 hex: 1BB bin: 110111011

Name

command_block_minecart

Java Edition.pngMclogo.svgEducation Edition.svg

A minecart with command block is an impulse[Java Edition only]/repeating[Bedrock Edition only] command block inside a minecart.

Obtaining[edit]

The minecart with command block is only obtainable using the command /give @s command_block_minecart, as it has no crafting recipe. It can also be summoned using the command /summon command_block_minecart. It can be broken like any other minecart, but only the minecart is retained, while the command block is lost.

Usage[edit]

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]

Entity data[edit]

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.

History[edit]

Java Edition
1.7.2 13w39a
Added minecart with command block.
1.9 15w34a The texture of the command block in the minecart has been removed due to the new texture and types for the command block.
15w35a The texture of the command block has been changed.
1.11 16w32a The entity ID is changed from MinecartCommandBlock to commandblock_minecart.
1.13 17w47a Prior to The Flattening, this item's numeral ID was 422.
pre5 Entity ID changed to command_block_minecart.
Pocket Edition
1.0.5 build 1
Added minecart with command block. The minecart 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]

Issues relating to "Minecart with Command Block" are maintained on the bug tracker. Report issues there.

Trivia[edit]

  • In Bedrock Edition in simplified Chinese (zh-cn), Minecart with Command Block is translated into "带有命令块的《我的世界》" (Minecraft with Command Block).

Gallery[edit]