1

Need Help With Command!

[L]Gho5t_2312 9/6/14 7:34 pm
1.1k
9/7/2014 6:52 am
I've made a command that's supposed to summon a command block minecart that already has a command written in it, but there is a problem that I don't know what to do with.

Command: /summon MinecartCommandBlock -600 3 350 {Command:"/tellraw @p {"text":"Click To Activate: ",extra:[{"text":"Bacon Power","clickEvent":{"action":"run_command","value":"/summon LightningBolt"}}]}"}

Problem: Data tag parsing failed: Unexpected token 't' at: text":"Click To Activate: ",extra:[{"ext":"Bacon Power","clickEvent":{"action":"run_command","value":"/summon LightningBolt"}}]}"
Posted by
[L]Gho5t_2312
Level 1 : New Miner
0

  Have something to say?

JoinSign in

3

[L]Gho5t_2312
09/07/2014 6:52 am
Level 1 : New Miner
Is there anyway to make this only activate if there isn't another command block minecart?

EDIT: Nevermind, I made another command block system that detected if there was a command block minecart already there.
1
[L]Gho5t_2312
09/07/2014 6:29 am
Level 1 : New Miner
Thanks! I was really stuck there.
1
Jmal116
09/06/2014 9:31 pm
Level 34 : Artisan System
The issue here is that you're trying to place a command that uses quotation marks. When you do this, the summon command tries to use them as part of the actual code, when you want it to treat them just as plain characters to paste into the new command block. To fix it, simply place a forward slash (\) in front of all the quotes that are a part of the tellraw command. So your command would turn into this: /summon MinecartCommandBlock -600 3 350 {Command:"/tellraw @p {\"text\":\"Click To Activate: \",extra:[{\"text\":\"Bacon Power\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon LightningBolt\"}}]}"}
1

Welcome