Résolu Setblock de command block avec une commande à l'intérieur

Spokloo

Creeper aimant les command block et la redstone :D
7 Juin 2016
131
5
75
26
Bonjour, j'aimerais faire un setblock de command block avec une commande dedans mais ça ne marche pas aidez moi svp
Code:
/setblock ~ ~1 ~ minecraft:command_block 0 replace {Command:"/blockdata ~ ~1 ~ {Text1:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock -3 52 8 redstone_block\"}}",Text2:"[\"\",{\"text\":\"Clique \",\"color\":\"dark_aqua\"},{\"text\":\"Moi !\",\"color\":\"dark_red\"}]"}"}
PS : je suis en 1.8.9 avec des plugins sur un serveur
PS2 : (non pas la console lol) le blockdata est pour un panneau et comme message d'erreur il me met
[@: Data tag parsing failed: Illegal use of \": {Command:"/blockdata ~ ~1 ~ {Text1:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock -3 52 8 redstone_block\"}}",Text2:"[\"\",{\"text\":\"Clique \",\"color\":\"dark_aqua\"},{\"text\":\"Moi !\",\"color\":\"dark_red\"}]"}"}]
Pourtant le blockdata tout seul fonctionne je l'ai tester
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
Code:
/setblock ~ ~1 ~ minecraft:command_block 0 replace {Command:"/blockdata ~ ~1 ~ {Text1:\"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock -3 52 8 redstone_block\"}}\",Text2:\"[\\"\\",{\\"text\\":\\"Clique \\",\\"color\\":\\"dark_aqua\\"},{\\"text\\":\\"Moi !\\",\\"color\\":\\"dark_red\\"}]\"}"}
Je n'ai pas tester donc je te laisse le faire mais c'est une erreur lié à l'échappement de tes guillemets ;)
 

Spokloo

Creeper aimant les command block et la redstone :D
7 Juin 2016
131
5
75
26
Ca ne fonctionne pas cette fois il me met ce message d'erreur
[@: Data tag parsing failed: Unexpected token '\' at: \\",{\\"text\\":\\"Clique \\",\\"color\\":\\"dark_aqua\\"},{\\"text\\":\\"Moi !\\",\\"color\\":\\"dark_red\\"}]\"}"]
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
Hum... Essaye de retirer un contre-slash à tout les doubles contre-slash ^^"
 

Spokloo

Creeper aimant les command block et la redstone :D
7 Juin 2016
131
5
75
26
Le commande block apparait mais quand je l'active il affiche ça
[@: Data tag parsing failed: Unexpected token 't' at: text":"","clickEvent":{"action":"run_command","value":"setblock -3 52 8 redstone_block"}}",Text2:"["",{"text":"Clique ","color":"dark_aqua"},{"text":"Moi !","color":"dark_red"}]"]
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
Je suis penché sur ton problème, et je cherche l'erreur mais pour l'instant, j'ai beau réecrire la commande manuellement, je ne trouve pas mon erreur... Bref, je te dit ça dès que j'ai trouvé ^^"