Mojira Archive
MC-120648

/setblock wall sign with click event command to set a command block with command

Im not sure if this is a bug or not butt i can not find an answer.

when I plug in

/setblock ~ ~1 ~ minecraft:wall_sign 3 0 {BlockEntityTag:{Text1:"{\"text\":\"Limesdfghjkl;dfghjkfghj\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 air\"},\"obfuscated\":true,\"color\":\"white\"}",Text2:"{\"text\":\"White\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 chain_command_block 13 replace {Command:\\\"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:barrier 0 /tp @p @e[type=minecraft:armor_Stand,name=white]\\\", auto:1b}\"},\"color\":\"white\"}",Text3:"",Text4:"{\"text\":\"wadgsdfghjsdfghjsdfghj\",\"obfuscated\":true,\"color\":\"white\"}"},display:{Name:"Custom Sign"}}

to a command block I get a sign with no words and no commands

and if i put in

/setblock ~ ~1 ~ minecraft:wall_sign 3 replace {Text1:"{\"text\":\"Limesdfghjkl;dfghjkfghj\",\"color\":\"white\",\"obfuscated\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 air\"}}",Text2:"{\"text\":\"White\",\"color\":\"white\"}",Text3:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 chain_command_block 13 replace {Command:"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:barrier 0 /tp @p @e[type=minecraft:armor_Stand,name=white]", auto:1b}\"}}",Text4:"{\"text\":\"Limesdfghjkl;dfghjkfghj\",\"color\":\"white\",\"obfuscated\":true}"}

i get the error

[23:56:16] Data tag parsing failed: Expected '}' but got '/' at: ...ommand_block 13 replace {Command:"/<--[HERE]

with this comand I get a sign with the words and click event but i took out the /setblock comandblock with the command

/setblock ~ ~1 ~ minecraft:wall_sign 3 replace {Text1:"{\"text\":\"Limesdfghjkl;dfghjkfghj\",\"color\":\"white\",\"obfuscated\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 air\"}}",Text2:"{\"text\":\"White\",\"color\":\"white\"}",Text3:"{\"text\":\"\"}",Text4:"{\"text\":\"Limesdfghjkl;dfghjkfghj\",\"color\":\"white\",\"obfuscated\":true}"}

if i use this

/give @p minecraft:sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Limesdfghjkl;dfghjkfghj\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 air\"},\"obfuscated\":true,\"color\":\"white\"}",Text2:"{\"text\":\"White\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~2 ~-5 ~2 chain_command_block 13 replace {Command:\\\"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:barrier 0 /tp @p @e[type=minecraft:armor_Stand,name=white]\\\", auto:1b}\"},\"color\":\"white\"}",Text3:"",Text4:"{\"text\":\"wadgsdfghjsdfghjsdfghj\",\"obfuscated\":true,\"color\":\"white\"}"},display:{Name:"Custom Sign"}}

I get the sign and it works, but i want to place it with a command

Invalid

Daniel Harrison McClenithan

2017-09-14, 10:04 AM

2017-09-14, 11:58 AM

2017-09-14, 11:58 AM

0

0

Unconfirmed

Minecraft 1.12.1

-