How do I /give myself a commandblock minecart that already has a command in it?

How do I /give myself a commandblock minecart that already has a command in it? - Cheerful crop African American female owner giving treat to Labrador Retriever while teaching commands in park

I want to /give myself a commandblock minecart that already has a command in it. I already tried using the {BlockEntityTag} in the /give command but that didn't work.

/give @p minecraft:command_block_minecart 1 0 {BlockEntityData:{Command:/say hi}}

Anyone know how to do this?



Best Answer

use /entitydata @e[name=replace] {CustomName:"",Command:"/say hi"} as the other command no longer works this new command will only work on already placed command block mine-carts




Pictures about "How do I /give myself a commandblock minecart that already has a command in it?"

How do I /give myself a commandblock minecart that already has a command in it? - Dog giving paw to anonymous person
How do I /give myself a commandblock minecart that already has a command in it? - Free stock photo of adult, africa, business
How do I /give myself a commandblock minecart that already has a command in it? - Free stock photo of adult, africa, bus



How do you summon a command block Minecart with a command in it?

The minecart with command block is obtainable only using the command /give @s command_block_minecart , as it has no crafting recipe. It can also be summoned using the command /summon command_block_minecart . It can be broken like any other minecart, but only the minecart is retained, while the command block is lost.

How do you get a command block to repeat a Minecart?

To get a repeating command block, players must use the /give command like so: /give @p minecraft:repeating_command_block <amount> . Players can also change a normal command block into a repeating command block by selecting the option in the command block GUI.

How do you give yourself command blocks with commands?

Give yourself a Command Block by opening the chat box and entering \u201c/give [your username] minecraft:command_block\u201d Turn on Creative Mode by typing \u201c/gamemode c\u201d in your chat box. Place the Command Block where you want it.

How do you give yourself a command block with NBT?

It can either be obtained by using the pick block control, or by using various commands, such as /give @s minecraft:command_block , or /setblock ~ ~ ~ command_block . In Java Edition, just like other blocks that can store NBT data, using pick block + CTRL copies the command and options inside the command block.



Minecraft INFINITE RAIL Trick | Command Block Minecart Tutorial




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Samson Katt, Leon Natan, RODNAE Productions, RODNAE Productions