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

/clear fails on strings containing spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w03b, Minecraft 14w05b
    • Fix Version/s: Minecraft 14w06a
    • Labels:
      None
    • Environment:
      Minecraft Launcher 1.3.8, Vanilla Server
    • Confirmation Status:
      Confirmed

      Description

      I used this command:

      /clear @p tripwire_hook 0 1 {display:{Name:"Chest Key"}}
      

      in a command block, however after running it, I saw this error:

      Data tag parsing failed: unbalanced quotation: {display:{Name:"Chest
      

      This means that when using data tags on /clear, writing a space inside of a data tag informs the /clear command to go to the next possible command parameter, which doesn't exist here, so it just doesn't use it. No problems with this command:

      /clear @p tripwire_hook 0 1 {display:{Name:"Key"}}
      

      As a map maker, I would like to see a fix before 14w03a. That chest key stuff is awesome, the only problem currently is that I need to use the "Key" name, however I can't use names like "Chest Key" or "Key #2".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dinnerbone [Mojang] Nathan Adams
                Reporter:
                dark3125 Zatherz
              • Votes:
                7 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: