I'm trying to make a command that summons a sign that you can buy a certain item from, however I keep on getting a error with inserting the lore and the custom name, the command that I have used is,
/give @p sign 1 0 {BlockEntityTag:{Text1:"[{\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p[score_Grains=0] {\\\"text\\\":\\\"You do not have enough Grains to buy that\\\",\\\"color\\\":\\\"dark_red\\\"}\"},\"text\":\"[Buy]\",\"bold\":\"true\"}]",Text2:"[{\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p[score_Grains_min=1] {\\\"text\\\\\\\":\\\"You just bought 1 Test for $1\\\",\\\"color\\\":\\\"dark_green\\\"}\"},\"text\":\"Test\",\"underlined\":\"true\"}]",Text3:"[{\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/give @p[score_Grains_min=1] minecraft:paper 1 0 {display:{Name:"Test",Lore:["Test"]},ench:[{id:0,lvl:10}]}\"},\"text\":\"$1\",\"color\":\"green\"}]",Text4:"[{\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players remove @p[score_Grains_min=1] Grains 1\"},\"text\":\"1\"}]"},display:{Name:"Buy Test"}}
However, there is a error message which is,
[13:21:48] Data tag parsing failed: Unexpected token 'T' at: Test",Lore:["Test"]},ench:[{id:0,lvl:10}]}\"},\"text\":\"$1\",\"color\":\"green\"}]",Text4:"[{\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players remove @p[score_Grains_min=1] Grains 1\"},\"text\":\"1\"}]"
What is wrong? And how do I fix this?
ench
you closed your last{ }
, so this goes nowhere. That's why it fails. Please count your brackets or post the command as text, so we can read it properly. There might be other syntax errors. – dly Sep 5 '16 at 7:16