Updated:

Minecart with Command Block: item ID and commands

The ID for Minecart with Command Block is minecraft:command_block_minecart. It is an item, used with /give and /clear. The ID has been the same since Java 1.13.

Basic data

NameMinecart with Command Block
ID (Java Edition)minecraft:command_block_minecart
TypeItem
Java versionsJava 1.13 to 26.3
Bedrock 26.52Not tested
Stack size1

Commands you can copy

Java Edition

Give one

/give @p minecraft:command_block_minecart 1

Put in main hand (Java 1.17+)

/item replace entity @p weapon.mainhand with minecraft:command_block_minecart

Remove from inventory

/clear @p minecraft:command_block_minecart

Open this command in the Give generator

Bedrock Edition

This ID has not been tested on Bedrock. Check the in-game suggestions before running it.

Version notes

This ID has not changed from Java 1.13 to the latest 26.3.

Java 1.20.5 and later write extra item data in [ ] (components); 1.20.4 and earlier use { } (NBT). A plain /give with only the ID is the same in both.

Questions

What is the ID for Minecart with Command Block?

It is minecraft:command_block_minecart. In commands you can also write command_block_minecart without minecraft:.

Why does the command turn red?

Check the spelling first. The Command Error Doctor can check it.

Related IDs