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

Commands do not work when the name of the entity is more than one word, such as "Bob Bee'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.15.2
    • Unconfirmed
    • (Unassigned)

      Commands do not work if the entity (ex. a cow) is named more than one word, such as Bob Bee. Another way to put this is any name with a space in it. For example, in the command /tp @e[name=Bob Bee] (username) to bring Bob Bee to me, the command fails. The game only reads the first part "Bob" and breaks after the space. The command turns red and fails.

      A solution to this would be to make the game recognize the [name=...] part and allow 1 or more spaces after that. This would allow names with spaces to be used in commands.

       

       

      Another example of a command that it fails in, if I do /execute @e[name=Bob Bee].... and then the rest of the command, it fails because the game doesn't recognize the name, Bob Bee.

            Unassigned Unassigned
            MichaelDaUnicorn Michael Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: