Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-120648

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12.1
    • None
    • Unconfirmed

      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

            Unassigned Unassigned
            sugar_num Daniel Harrison McClenithan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: