Minecraft Wiki
Advertisement
Minecraft Wiki
Information icon.svg
This feature is exclusive to Java Edition and Bedrock Edition. 
Minecart with Command Block
Minecart with Command Block.gif
Minecart with Command Block BE.gif
Rarity color

Epic

Renewable

No

Stackable

No

Size

Height: 0.7 Blocks
Width: 0.98 Blocks

Network ID

10

Drops
Health points

6♥♥♥

A minecart with command block is an impulse‌[JE only] or repeating‌[BE & EE only] command block inside a minecart.

Obtaining[]

The minecart with command block is obtainable only 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[]

Main article: Command Block

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 outputs the command block's result.

Sounds[]

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Minecart rolls?Plays when the minecart is movingentity.minecart.ridingsubtitles.entity.minecart.riding??16

Data values[]

ID[]

Java Edition:

ItemResource locationFormTranslation key
Minecart with Command Blockcommand_block_minecartItemitem.minecraft.command_block_minecart
EntityResource locationTranslation key
Minecart with Command Blockcommand_block_minecartentity.minecraft.command_block_minecart

Bedrock Edition:

ItemResource locationNumeric ID FormTranslation key
Minecart with Command Blockcommand_block_minecart443Itemitem.command_block_minecart.name
EntityResource locationNumeric ID Translation key
Minecart with Command Blockcommand_block_minecart100entity.command_block_minecart.name

Entity data[]

Minecarts with command blocks have entity data associated with them that contain various properties of the entity.

Java Edition:

Main article: Entity format
  • Entity data
    • Tags common to all entities
    • Tags common to all minecarts
    •  Command: The command entered into the minecart.
    •  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.
    •  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.
    •  TrackOutput: 1 or 0 (true/false) - Determines whether the LastOutput is 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.

Bedrock Edition:

See Bedrock Edition level format/Entity format.

History[]

Java Edition
1.7.213w39aMinecart with Command Block JE1.png Minecart with Command Block (item) JE1 BE2.png Added minecart with command block.
1.915w34aMinecart with Command Block JE2.png The texture of the command block in the minecart has been removed due to the new texture and types for the command block.
15w35aMinecart with Command Block JE3.png The texture of the command block has been changed.
1.1116w32aThe entity ID has been changed from MinecartCommandBlock to commandblock_minecart.
1.1317w47aPrior to The Flattening, this item's numeral ID was 422.
pre5The entity ID has been changed to command_block_minecart.
1.1418w43aMinecart with Command Block JE4.png Minecart with Command Block (item) JE2 BE3.png The textures of the minecart with command block has been changed.
1.1721w20aMinecart with command block rarity color was changed from common to epic.
Pocket Edition
1.0.5alpha 1.0.5.0Minecart with Command Block BE1.png Minecart with Command Block (item) BE1.png Added minecart with command block. The minecart has a repeating command block in it, instead of an impulse command block.
1.1.0alpha 1.1.0.0The entity ID has been changed from minecartcommandblock to command_block_minecart.
Bedrock Edition
1.9.0?Minecart with Command Block (item) JE1 BE2.png The inventory texture of the minecart with command block has been changed to match Java Edition's.
1.10.0beta 1.10.0.3Minecart with Command Block BE2.png Minecart with Command Block (item) JE2 BE3.png The texture of the minecart with command block has been changed.

Issues[]

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

Gallery[]

References[]

Advertisement