mojira.dev
MC-49409

Summoned command block minecarts wont perform certain commands.

i was trying to use command blocks to summon minecarts that had command blocks in to create custom mob spawners.
the minecarts ran on tracks underground.

Here are a couple of examples i tryed to use:

summon MinecartCommandBlock ~ ~ ~-1 {Command:"summon Slime ~ ~7 ~ {CustomName:"Forest Slime",Size:0,Riding:{id:Slime,CustomName:"Forest Slime",Size:1}}"}

summon MinecartCommandBlock ~ ~ ~-1 {Command:"summon Wolf ~ ~5 ~ {CustomName:"Wild Wolf",Angry:1}"}

the command blocks do not summon minecarts with commands in unless you remove the custom names from the command.

my guess would be that the custom name speech marks conflict with the command ones.

Comments 2

Hmm.. Weird because "CustomName" tags are inside string so they should not interfere or run.

You have to quote the inner quotation marks:

summon MinecartCommandBlock ~ ~ ~-1 {Command:"summon Slime ~ ~7 ~ {CustomName:\"Forest Slime\",Size:0,Riding:{id:Slime,CustomName:\"Forest Slime\",Size:1}}"}

Linaru Greyfall

(Unassigned)

Unconfirmed

Minecraft 14w07a, Minecraft 14w08a

Retrieved