-1

This question already has an answer here:

This command is being run in Minecraft 1.12:

/summon falling_block ~ ~1 ~ {Block:repeating_command_block,Data:1,TileEntityData:{TrackOutput:0b,Command:execute @a ~ ~ ~ execute @e[type=ender_pearl,r=5,c=1] ~ ~ ~ teleport @p ~ ~ ~},Time:1,Passengers:[{id:falling_block,Block:chain_command_block,Data:1,TileEntityData:{TrackOutput:0b,Command:execute @a ~ ~ ~ kill @e[type=ender_pearl,rm=1,r=5]},Time:1}]}

The command block returns with:

Data tag parsing failed: Expected '}' but got '@' at: ...a:      {TrackOutput:0b,Command:execute @<--[HERE]

What is wrong with this?

marked as duplicate by greg-449, galacticninja, Virusbomb, MBraedley, Gigazelle Jul 10 at 18:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

You are missing some quotes on the command arguments. After both instances of Command: there should be quotes containing the commands.

This runs successfully:

/summon falling_block ~ ~1 ~ {Block:repeating_command_block,Data:1,TileEntityData:{TrackOutput:0b,Command:"execute @a ~ ~ ~ execute @e[type=ender_pearl,r=5,c=1] ~ ~ ~ teleport @p ~ ~ ~"},Time:1,Passengers:[{id:falling_block,Block:chain_command_block,Data:1,TileEntityData:{TrackOutput:0b,Command:"execute @a ~ ~ ~ kill @e[type=ender_pearl,rm=1,r=5]"},Time:1}]}

Not the answer you're looking for? Browse other questions tagged or ask your own question.