Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Minecart with Command Block: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
Line 1: Line 1:
{{For||Minecart (disambiguation)}}
{{MC/For||Minecart (disambiguation)}}
{{Infobox item entity
{{Infobox item entity
|renewable = No
|renewable = No
Line 10: Line 10:
|invimage1 = Minecart with Command Block
|invimage1 = Minecart with Command Block
|networkid =
|networkid =
|drops = {{drop|Item|Minecart|1}}
|drops = {{MC/Drop|Item|Minecart|1}}
|health = {{hp|6}}
|health = {{hp|6}}
|rarity =
|rarity =
Line 21: Line 21:
== Obtaining ==
== Obtaining ==


The minecart with command block is obtainable only using the command {{cmd|give @s command_block_minecart}}, as it does not appear in the creative inventory{{only|BE}} and has no [[Minecraft:crafting]] recipe. It can also be summoned using the command {{cmd|summon command_block_minecart}}. It can be broken like any other minecart, but only the minecart is retained, while the command block is lost.
The minecart with command block is obtainable only using the command {{MC/Cmd|give @s command_block_minecart}}, as it does not appear in the creative inventory{{only|BE}} and has no [[Minecraft:crafting]] recipe. It can also be summoned using the command {{MC/Cmd|summon command_block_minecart}}. It can be broken like any other minecart, but only the minecart is retained, while the command block is lost.


Unlike most [[Minecraft:minecart]] types, command block minecarts can't be crafted with a [[Minecraft:minecart]] and a command block.
Unlike most [[Minecraft:minecart]] types, command block minecarts can't be crafted with a [[Minecraft:minecart]] and a command block.


== Usage ==
== Usage ==
{{main|Command Block}}
{{MC/Main|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,  executing the command once every four game [[Minecraft:tick]]s (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 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,  executing the command once every four game [[Minecraft:tick]]s (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 [[Minecraft:coordinates]] of the minecart, which can of course move, allowing for command execution relative to an entity without the {{cmd|execute}} command.
The command is executed at the [[Minecraft:coordinates]] of the minecart, which can of course move, allowing for command execution relative to an entity without the {{MC/Cmd|execute}} command.


== Sounds ==
== Sounds ==
{{Edition|Java}}:<br>
{{MC/Edition|Java}}:<br>
Minecarts with command blocks use the Friendly Creatures sound category for entity-dependent sound events.<ref group="sound" name="rollsource">{{bug|MC-42132}}</ref>
Minecarts with command blocks use the Friendly Creatures sound category for entity-dependent sound events.<ref group="sound" name="rollsource">{{bug|MC-42132}}</ref>


Line 51: Line 51:
}}
}}


{{Edition|Bedrock}}:
{{MC/Edition|Bedrock}}:
{{SoundTable
{{SoundTable
| type = bedrock
| type = bedrock
Line 64: Line 64:
== Data values ==
== Data values ==
=== ID ===
=== ID ===
{{edition|java}}:
{{MC/Edition|java}}:
{{ID table
{{ID table
|edition=java
|edition=java
Line 84: Line 84:
|foot=1}}
|foot=1}}


{{edition|bedrock}}:
{{MC/Edition|bedrock}}:
{{ID table
{{ID table
|edition=bedrock
|edition=bedrock
Line 115: Line 115:
Minecarts with command blocks have entity data associated with them that contain various properties of the entity.  
Minecarts with command blocks have entity data associated with them that contain various properties of the entity.  


{{el|java}}:
{{MC/El|java}}:
{{main|Entity format}}
{{MC/Main|Entity format}}
<section begin="entity data"/><div class="treeview" style="margin-top: 0;">
<section begin="entity data"/><div class="treeview" style="margin-top: 0;">
* {{nbt|compound}} Entity data
* {{MC/Nbt|compound}} Entity data
** {{nbt inherit/entity}}
** {{MC/Nbt inherit/entity}}
** {{nbt inherit/vehicle}}
** {{MC/Nbt inherit/vehicle}}
** {{nbt|string|Command}}: The command entered into the minecart.
** {{MC/Nbt|string|Command}}: The command entered into the minecart.
** {{nbt|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.
** {{MC/Nbt|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.
** {{nbt|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.
** {{MC/Nbt|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.
** {{nbt|bool|TrackOutput}}: {{cd|1}} or {{cd|0}} ({{cd|true}}/{{cd|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.
** {{MC/Nbt|bool|TrackOutput}}: {{MC/Cd|1}} or {{MC/Cd|0}} ({{MC/Cd|true}}/{{MC/Cd|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.
</div><section end="entity data"/>
</div><section end="entity data"/>


{{el|bedrock}}:
{{MC/El|bedrock}}:
: See [[Minecraft:Bedrock Edition level format/Entity format]].
: See [[Minecraft:Bedrock Edition level format/Entity format]].


Line 133: Line 133:
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.7.2|dev=13w39a|[[File:Minecart with Command Block JE1.png|32px]] [[File:Minecart with Command Block (item) JE1 BE2.png|32px]] Added minecart with command block.}}
|{{MC/HistoryLine||1.7.2|dev=13w39a|[[File:Minecart with Command Block JE1.png|32px]] [[File:Minecart with Command Block (item) JE1 BE2.png|32px]] Added minecart with command block.}}
|{{HistoryLine||1.9|dev=15w34a|[[File:Minecart with Command Block JE2.png|32px]] The texture of the command block in the minecart has been removed{{verify|this doesn't look like a removal to me}} due to the new texture and types for the command block.}}
|{{HistoryLine||1.9|dev=15w34a|[[File:Minecart with Command Block JE2.png|32px]] The texture of the command block in the minecart has been removed{{MC/Verify|this doesn't look like a removal to me}} due to the new texture and types for the command block.}}
|{{HistoryLine|||dev=15w35a|[[File:Minecart with Command Block JE3.png|32px]] The texture of the command block has been changed.}}
|{{MC/HistoryLine|||dev=15w35a|[[File:Minecart with Command Block JE3.png|32px]] The texture of the command block has been changed.}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Minecart with Command Block JE4.png|32px]] [[File:Minecart with Command Block (item) JE2 BE3.png|32px]] The textures of the minecart with command block has been changed.}}
|{{MC/HistoryLine||1.14|dev=18w43a|[[File:Minecart with Command Block JE4.png|32px]] [[File:Minecart with Command Block (item) JE2 BE3.png|32px]] The textures of the minecart with command block has been changed.}}
|{{HistoryLine||1.17|dev=21w20a|The rarity of minecarts with command block has been changed from "Common" to "Epic".}}
|{{MC/HistoryLine||1.17|dev=21w20a|The rarity of minecarts with command block has been changed from "Common" to "Epic".}}
|{{HistoryLine||1.19.3|dev=22w44a|Minecart with command block is now available in the creative inventory, but only if cheats are enabled.}}
|{{MC/HistoryLine||1.19.3|dev=22w44a|Minecart with command block is now available in the creative inventory, but only if cheats are enabled.}}
|{{HistoryLine|||dev=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.}}
|{{MC/HistoryLine|||dev=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'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|pocket}}
|{{MC/HistoryLine|pocket}}
|{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|[[File:Minecart with Command Block BE1.png|32px]] [[File:Minecart with Command Block (item) BE1.png|32px]] Added minecart with command block. The [[Minecraft:minecart]] has a repeating command block in it, instead of an impulse command block.}}
|{{MC/HistoryLine||1.0.5|dev=alpha 1.0.5.0|[[File:Minecart with Command Block BE1.png|32px]] [[File:Minecart with Command Block (item) BE1.png|32px]] Added minecart with command block. The [[Minecraft:minecart]] has a repeating command block in it, instead of an impulse command block.}}
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Minecart with Command Block BE2.png|32px]] [[File:Minecart with Command Block (item) JE2 BE3.png|32px]] The texture of the minecart with command block has been changed. The item texture has also been changed to match {{el|je}}'s.<ref>{{bug|MCPE-42990}}</ref>}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Minecart with Command Block BE2.png|32px]] [[File:Minecart with Command Block (item) JE2 BE3.png|32px]] The texture of the minecart with command block has been changed. The item texture has also been changed to match {{MC/El|je}}'s.<ref>{{bug|MCPE-42990}}</ref>}}
}}
}}


=== Legacy Console Edition ===
=== Legacy Console Edition ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|console}}
|{{MC/HistoryLine|console}}
|{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|switch=1.0.1|Added minecart with command blocks. They are only obtainable through inventory editors.{{check version}}}}
|{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|switch=1.0.1|Added minecart with command blocks. They are only obtainable through inventory editors.{{check version}}}}
}}
}}
Line 160: Line 160:
==== ''Java Edition'' ====
==== ''Java Edition'' ====
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.11|dev=16w32a|The entity ID has been changed from <code>MinecartCommandBlock</code> to <code>commandblock_minecart</code>.}}
|{{MC/HistoryLine||1.11|dev=16w32a|The entity ID has been changed from <code>MinecartCommandBlock</code> to <code>commandblock_minecart</code>.}}
|{{HistoryLine||1.13|dev=17w47a|Prior to ''The Flattening'', this item's numeral ID was 422.{{info needed|and the entity's was what?}}}}
|{{HistoryLine||1.13|dev=17w47a|Prior to ''The Flattening'', this item's numeral ID was 422.{{MC/Info needed|and the entity's was what?}}}}
|{{HistoryLine|||dev=pre5|The entity ID has been changed to <code>command_block_minecart</code>.}}
|{{MC/HistoryLine|||dev=pre5|The entity ID has been changed to <code>command_block_minecart</code>.}}
}}
}}


==== ''Bedrock Edition'' ====
==== ''Bedrock Edition'' ====
{{HistoryTable
{{HistoryTable
|{{HistoryLine|pocket}}
|{{MC/HistoryLine|pocket}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|The entity ID has been changed from <code>minecartcommandblock</code> to <code>command_block_minecart</code>.}}
|{{MC/HistoryLine||1.1.0|dev=alpha 1.1.0.0|The entity ID has been changed from <code>minecartcommandblock</code> to <code>command_block_minecart</code>.}}
}}
}}


== Issues ==
== Issues ==


{{issue list}}
{{MC/Issue list}}


== Gallery ==
== Gallery ==
Line 184: Line 184:


== References ==
== References ==
{{Reflist}}
{{MC/Reflist}}


== Navigation ==
== Navigation ==
{{Navbox items|Creative}}
{{MC/Navbox items|Creative}}
{{Navbox entities|Other}}
{{MC/Navbox entities|Other}}


[[Category:Vehicles]]
[[Category:Vehicles]]

Revision as of 20:37, 9 April 2026

Template:Hatnote Template:Infobox item entity

A minecart with command block is an impulseTemplate:Only or repeatingTemplate:Only command block inside a Minecraft:minecart.

Obtaining

The minecart with command block is obtainable only using the command

  1. REDIRECT Template:Command

Template:Redr, as it does not appear in the creative inventoryTemplate:Only and has no Minecraft:crafting recipe. It can also be summoned using the command

  1. REDIRECT Template:Command

Template:Redr. It can be broken like any other minecart, but only the minecart is retained, while the command block is lost.

Unlike most Minecraft:minecart types, command block minecarts can't be crafted with a Minecraft:minecart and a command block.

Usage

{{#vardefine:params|0 }}Template:Hatnote 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, executing the command once every four game Minecraft: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 Minecraft:coordinates of the minecart, which can of course move, allowing for command execution relative to an entity without the

  1. REDIRECT Template:Command

Template:Redr command.

Sounds

Template:!((Java EditionTemplate:))!:
Minecarts with command blocks use the Friendly Creatures sound category for entity-dependent sound events.<ref group="sound" name="rollsource">Template:Bug</ref>

Template:SoundTable

Template:!((Bedrock EditionTemplate:))!: Template:SoundTable

Data values

ID

Template:!((Java EditionTemplate:))!: Template:ID table Template:ID table

Template:!((Bedrock EditionTemplate:))!: Template:ID table Template:ID table

Entity data

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

  1. REDIRECT Template:Edition

Template:Rcat: {{#vardefine:params|0 }}Template:Hatnote

<section begin="entity data"/>

  1. REDIRECT Template:Code

Template:Redr or

  1. REDIRECT Template:Code

Template:Redr (

  1. REDIRECT Template:Code

Template:Redr/

  1. REDIRECT Template:Code

Template:Redr) - 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.

<section end="entity data"/>

  1. REDIRECT Template:Edition

Template:Rcat:

See Minecraft:Bedrock Edition level format/Entity format.

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Legacy Console Edition

Template:HistoryTable

Data history

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Issues

Script error: No such module "Issue list".

Gallery

Screenshots

References

<references group="">

 </references>

Navigation

Display/storage
Buckets
Bottles
Informational
Vehicles/mobility
Template:El only
Music discs
Other
Edu only
Seeds
Raw materials
Processed
Edu only
Dyes
Banner patterns
Pottery sherds
Smithing templates
April Fools 2015
April Fools 2016
April Fools 2019
April Fools 2020
April Fools 2023
April Fools 2024
April Fools 2025
April Fools 2026

Template:Article otherTemplate:Article other

Passive
Template:Els & Template:Els only
Neutral
Hostile
Bosses
Mob types
Other
Player
Blocks
Template:Els only
Vehicles
Template:JE only
Projectiles
Template:JE only
Template:Els only
Stationary
objects
Java Edition only
Miscellaneous
Template:Els only
Template:Els & Template:Els only
Technical
objects
Template:Els only
Editor only
Mobs
April Fools 2013
April Fools 2015
April Fools 2019
April Fools 2023
April Fools 2024
April Fools 2025
Pet variants
April Fools 2026
Other entities
April Fools 2013
April Fools 2015
April Fools 2023
April Fools 2024
April Fools 2026

Template:Article other

de:Befehlsblocklore fr:Wagonnet à bloc de commande it:Carrello da miniera ja:コマンドブロック付きのトロッコ nl:Mijnkar met opdrachtblok pl:Wagonik z blokiem poleceń pt:Carrinho de mina com bloco de comando ru:Вагонетка с командным блоком uk:Вагонетка з командним блоком zh:命令方块矿车