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

Command Block Issue

XMLWordPrintable

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

      If I use this command:

      setblock ~-3 ~ ~ minecraft:command_block 0 replace {Command:"testfor @p[r=5] {Inventory:[tag:{display:{Name:"Key"}}}]}"}
      

      I get this output:

      Data tag parsing failed: Unexpected token 'K' at: Key"}}}]}"
      

      "Key" is used in the command to specify the item needed with a comparator to trigger the teleport command block. It needs to be used multiple times because it will be on a server so the command block that detects the item needs to be replaced. If there is another way I can do this without an error please report to me.

            Unassigned Unassigned
            NoUser No User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: