Minecraft:Minecart with Command Block
More actions
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
- 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
- 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
- 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:!((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.
- REDIRECT Template:Edition
Template:Rcat: {{#vardefine:params|0 }}Template:Hatnote
<section begin="entity data"/>
- Template:Nbt/sprite Entity data
- Template:Nbt inherit
- Template:Nbt inherit
- Template:Nbt/sprite Command: The command entered into the minecart.
- Template:Nbt/sprite 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.
- Template:Nbt/sprite 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.
- Template:Nbt/sprite TrackOutput:
- REDIRECT Template:Code
- REDIRECT Template:Code
- REDIRECT Template:Code
- 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"/>
- REDIRECT Template:Edition
History
Java Edition
Bedrock Edition
Legacy Console Edition
Data history
Java Edition
Bedrock Edition
Issues
Script error: No such module "Issue list".
Gallery
Screenshots
-
A minecart with command block in 1.16.4.
-
A minecart command block testing the block in the red area with Minecraft:air.
References
<references group="">
</references>
Template:Article otherTemplate: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:命令方块矿车