Summon Command Block Minecart
Spawn a minecart that runs a command
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Summons a minecart with a built-in command block that fires its command every tick while on activator rail, or once when it passes over one. It is a compact way to run commands from a moving cart in map mechanics. Note that command block minecarts are Java Edition only.
/summon command_block_minecart ~ ~ ~ {Command:"say Minecart activated"}71 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java).
- Paste the command and press Enter.
- A command block minecart spawns at your feet.
- Place it on rails with an activator rail to trigger the command.
Related commands
Spawn a charged creeper that creates a larger explosion
/summon creeper ~ ~ ~ {powered:1b}Spawn the hidden hostile rabbit variant
/summon rabbit ~ ~ ~ {RabbitType:99}Create a villager selling diamonds for one emerald
/summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:1},sell:{id:"minecraft:diamond",count:1},maxUses:999999}]}}Spawn a skeleton riding a spider
/summon spider ~ ~ ~ {Passengers:[{id:"minecraft:skeleton"}]}Spawn a baby zombie riding a chicken
/summon chicken ~ ~ ~ {Passengers:[{id:"minecraft:zombie",IsBaby:1b}]}