Mineuniverse
Minecart with Command Block

Minecart with Command Block

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

5 min read Updated 1 views
Items Non-renewable resources Non-stackable resources Entities Vehicles
Advertisement Remove ads with Premium →
Contents (16)
  1. Obtaining
  2. Usage
  3. Sounds
  4. Data values
  5. ID
  6. Entity data
  7. History
  8. Java Edition
  9. Bedrock Edition
  10. Legacy Console Edition
  11. Data history
  12. Issues
  13. Gallery
  14. Screenshots
  15. Textures
  16. References
Minecart with Command Block
Rarity tier Epic ‌[JE only]
Common ‌[BE only]
Renewable No
Stackable No
Size Height: 0.7 blocks
Width: 0.98 blocks
Drops
Health points 6HP❤️❤️❤️

A minecart with command block is an impulse‌[JE only] or repeating‌[BE & edu 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 does not appear in the creative inventory‌[Bedrock Edition only] and has no crafting recipe. It can also be summoned using the command /summon command_block_minecart. It can be broken like any other form of minecart, but doing so will only drop a minecart, losing the command block.

Unlike most minecart types, command block minecarts cannot be crafted with a minecart and a command block.

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 in Java Edition, it functions more similarly to a repeating command block, executing the command once every four game ticks (unlike a repeating command block that repeats every 1 game tick) 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 success count value.

The command is executed at the coordinates of the minecart, which can of course move, allowing for command execution relative to an entity without the /execute command.

Sounds

Java Edition:
Minecarts with command blocks use the Friendly Creatures sound category for entity-dependent sound events.[sound 1]

Sounds
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitchAttenuation
distance
​Minecart rollsFriendly Mobs [sound 1]While a minecart with command block is movingentity.minecart.ridingsubtitles.entity.minecart.riding​0.0–0.35 [sound 2]0.0–1.0 [sound 3]16
  1. ↑ a b MC-42132
  2. ↑ Relates linearly with horizontal velocity (max 0.5)
  3. ↑ Will increase by 0.0025 per tick if the minecart's horizontal velocity is more than 0.01

Bedrock Edition:

Sounds
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitch
​ ?Friendly MobsWhile a minecart with command block is movingminecart.base​ ???

Data values

ID

Java Edition:

ItemIdentifierForm Translation key
ItemSprite minecart-with-command-block.png: Sprite image for minecart-with-command-block in Minecraft Minecart with Command Blockcommand_block_minecartItem item.minecraft.command_block_minecart
EntityIdentifier Translation key
EntitySprite minecart-with-command-block.png: Sprite image for minecart-with-command-block in Minecraft Minecart with Command Blockcommand_block_minecart entity.minecraft.command_block_minecart

Bedrock Edition:

ItemIdentifierNumeric ID Form Translation key
ItemSprite minecart-with-command-block.png: Sprite image for minecart-with-command-block in Minecraft Minecart with Command Blockcommand_block_minecart563Item item.command_block_minecart.name
EntityIdentifierNumeric ID FamilyTranslation key
EntitySprite minecart-with-repeating-command-block.png: Sprite image for minecart-with-repeating-command-block in Minecraft Minecart with Command Blockcommand_block_minecart100 inanimate
minecart
entity.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
  • [NBT Compound / JSON Object] Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all minecarts see Template:Nbt inherit/vehicle/template
    • [String] Command: The command entered into the minecart.
    • [String] 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.
    • [Int] 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.
    • [Boolean] 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

Java Edition
1.7.213w39a Added minecart with command block.
1.915w34a 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.1418w43a The textures of the minecart with command block has been changed.
1.1721w20a The rarity of minecarts with command block has been changed from "Common" to "Epic".
1.19.322w44a Minecart with command block is now available in the creative inventory, but only if cheats are enabled.
22w45a Moved the minecart with command block behind the Operator Utilities tab in the creative inventory. The tab is only available if cheats are enabled and the "Operator Items Tab" option in the controls menu is turned on.

Bedrock Edition

Pocket Edition
1.0.5alpha 1.0.5.0 Added minecart with command block. The minecart has a repeating command block in it, instead of an impulse command block.
Bedrock Edition
1.10.0beta 1.10.0.3 The texture of the minecart with command block has been changed. The item texture has also been changed to match Java Edition.[1]

Legacy Console Edition

Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU31CU191.221.221.22Patch 31.0.1 Added minecart with command blocks. They are only obtainable through inventory editors.

Data history

Java Edition

Java Edition
1.1116w32a The entity ID has been changed from MinecartCommandBlock to commandblock_minecart.
1.1317w47a Prior to The Flattening, this item's numeral ID was 422, and the entity's numeral ID was 40.
pre5 The entity ID has been changed to command_block_minecart.

Bedrock Edition

Pocket Edition
1.1.0alpha 1.1.0.0 The entity ID has been changed from minecartcommandblock to command_block_minecart.

Issues

Issues relating to "Minecart with Command Block" are maintained on the bug tracker. Issues should be reported and viewed there.

Screenshots

Textures

References

Advertisement Remove ads with Premium →

More in Vehicles

View all 9 →
BoatBoatBoats (including bamboo rafts) are drivable vehicle entities that can be ridden through water or at high speeds across all types of ice. Most mobs board…Boat with ChestBoat with ChestBoats with chests (including bamboo rafts with chests) are boats with single chests occupying their passenger seats. A boat's chest can be accessed by…MinecartMinecartA minecart is a ridable vehicle entity that runs on rails and can be used to transport both players and mobs.Minecart with ChestMinecart with ChestA minecart with chest is a single chest inside a minecart. Unlike regular minecarts, it can be used to store items.Minecart with FurnaceMinecart with FurnaceA minecart with furnace is a furnace inside a minecart. It can be powered with exclusively coal or charcoal to propel it across a rail line for a limited…Minecart with HopperMinecart with HopperA minecart with hopper is a minecart with a hopper inside. Unlike a normal hopper, it pulls items from containers much more quickly, cannot push items…Minecart with TNTMinecart with TNTA minecart with TNT is a minecart with TNT inside. Unlike normal TNT, it can detonate instantly, and its blast radius and damage is increased by its speed…Obsidian BoatObsidian BoatThe obsidian boat was a joke boat variant exclusive to Java Edition 15w14a.

Related mods

cartable command blocks for all 4 plus the minecart cartable command blocks for all 4 plus the minecart Mod · 316 downloads
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home