1
{Command:} NBT isn't working with tellraw
Hi there peoplez. I was making a command block creation (Like I always do) and something didn't work. Can someone please help me with this command.
/setblock ~2 ~ ~ command_block 0 replace {Command:"/tellraw @a ["",{"text":"[Weak Hoe?!] ","color":"green"},{"text":"Get a golden hoe."}]Styled text only (Minecraft JSON Format)"}
BTW, if you want to know what I am making, I am making "Such Achievements" which is a structure that adds more achievements to Minecraft. Thanks for your answers! ^.^
/setblock ~2 ~ ~ command_block 0 replace {Command:"/tellraw @a ["",{"text":"[Weak Hoe?!] ","color":"green"},{"text":"Get a golden hoe."}]Styled text only (Minecraft JSON Format)"}
BTW, if you want to know what I am making, I am making "Such Achievements" which is a structure that adds more achievements to Minecraft. Thanks for your answers! ^.^
Create an account or sign in to comment.
2
1
Oh thanks! I will try that out.
1
The problem is that you're using nested quotation marks.
This is what the game sees:
/setblock ~2 ~ ~ command_block 0 replace {Command:
"/tellraw @a ["
",{"
text
":"
etc....
See how it's mismatching the quotation marks?. The solution is to use \" inside the {Command:" COMMAND HERE "} part.
So:
/setblock ~2 ~ ~ command_block 0 replace {Command:"/tellraw @a [\"\",{\"text\":\"[Weak Hoe?!] \",\"color\":\"green\"},{\"text\":\"Get a golden hoe.\"}]"}
This is what the game sees:
/setblock ~2 ~ ~ command_block 0 replace {Command:
"/tellraw @a ["
",{"
text
":"
etc....
See how it's mismatching the quotation marks?. The solution is to use \" inside the {Command:" COMMAND HERE "} part.
So:
/setblock ~2 ~ ~ command_block 0 replace {Command:"/tellraw @a [\"\",{\"text\":\"[Weak Hoe?!] \",\"color\":\"green\"},{\"text\":\"Get a golden hoe.\"}]"}