1
Need Help With Command!
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"}}]}"
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"}}]}"
3
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.
EDIT: Nevermind, I made another command block system that detected if there was a command block minecart already there.
Thanks! I was really stuck there.
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\"}}]}"}
