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

Bug in data tags parsing in a "setblock" command but the same data tags works in a testfor command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 14w32d, Minecraft 14w33c
    • Windows 7 64bits
      Java-1.7.0_21 64bits
    • Unconfirmed

      I have a command-block with a setblock command that replace an other command block with a testfor command (to reset the signal). The command in the testfor works well but the command in the setblock give me the following error: "Data tag parsing failed" but I've checked and there is no error

      Testfor command:
      /testfor @a {SelectedItemSlot:1,Inventory:[{Slot:1b,id:"minecraft:paper",tag:{display:

      {Name:"Fireball",Lore:["Hold this spell in your hand","to create a Fireball that youcan","shoot on your ennemies by clicking on it"]}

      ,ench:[

      {id:0,lvl:0}

      ],HideFlags:1}}]}

      Output: Found Julien008 (the command works)

      Setblock command:
      setblock ~-2 ~-1 ~ minecraft:command_block 0 replace {Command:"/testfor @a {SelectedItemSlot:1,Inventory:[{Slot:1b,id:"minecraft:paper",tag:{display:

      {Name:"Fireball",Lore:["Hold this spell in your hand","to create a Fireball that youcan","shoot on your ennemies by clicking on it"]}

      ,ench:[

      {id:0,lvl:0}

      ],HideFlags:1}}]}"}

      Output: [20:13:28] Data tag parsing failed: Unexpected token 'm' at: minecraft:paper",tag:{display:

      {Name:"Fireball",Lore:["Hold this spell in your hand","to create a Fireball that you can","shoot on your ennemies by clicking on it"]}

      ,ench:[

      {id:0,lvl:0}

      ],HideFlags:1}}]}"

      I think there is a problem with TileID integration

            searge [Mojang] Searge (Michael Stoyke)
            Julien008 Julien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: