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

/clear fails on strings containing spaces

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w03b, Minecraft 14w05b
    • Minecraft 14w06a
    • None
    • Minecraft Launcher 1.3.8, Vanilla Server
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: